aboutsummaryrefslogtreecommitdiff
path: root/vbox.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-03 22:58:39 +0200
committerJavier <dev.git@javispedro.com>2022-04-03 22:58:39 +0200
commitf9b0699da8adb44fd91640180a7b70639a43449b (patch)
tree81fcbd285a306b85f21086d1c7d37e77af71ed12 /vbox.h
parent71f66c759930ce22f099ad1631f05ddb3e0ccd8a (diff)
downloadvbados-f9b0699da8adb44fd91640180a7b70639a43449b.tar.gz
vbados-f9b0699da8adb44fd91640180a7b70639a43449b.zip
replace some custom asm utils with watcom intrinsincs
Diffstat (limited to 'vbox.h')
-rw-r--r--vbox.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/vbox.h b/vbox.h
index a4ad727..6bb8797 100644
--- a/vbox.h
+++ b/vbox.h
@@ -22,6 +22,7 @@
#include <stdbool.h>
#include <stdint.h>
+#include <string.h>
#include "dlog.h"
#include "vds.h"
@@ -69,7 +70,7 @@ static int vbox_report_guest_info(LPVBOXCOMM vb, uint32_t osType)
{
VMMDevReportGuestInfo __far *req = (void __far *) vb->buf;
- bzero(req, sizeof(VMMDevReportGuestInfo));
+ _fmemset(req, 0, sizeof(VMMDevReportGuestInfo));
req->header.size = sizeof(VMMDevReportGuestInfo);
req->header.version = VMMDEV_REQUEST_HEADER_VERSION;
@@ -88,7 +89,7 @@ static int vbox_set_mouse(LPVBOXCOMM vb, bool absolute, bool pointer)
{
VMMDevReqMouseStatus __far *req = (void __far *) vb->buf;
- bzero(req, sizeof(VMMDevReqMouseStatus));
+ _fmemset(req, 0, sizeof(VMMDevReqMouseStatus));
req->header.size = sizeof(VMMDevReqMouseStatus);
req->header.version = VMMDEV_REQUEST_HEADER_VERSION;
@@ -110,7 +111,7 @@ static int vbox_get_mouse(LPVBOXCOMM vb, bool __far *abs,
{
VMMDevReqMouseStatus __far *req = (void __far *) vb->buf;
- bzero(req, sizeof(VMMDevReqMouseStatus));
+ _fmemset(req, 0, sizeof(VMMDevReqMouseStatus));
req->header.size = sizeof(VMMDevReqMouseStatus);
req->header.version = VMMDEV_REQUEST_HEADER_VERSION;
@@ -131,7 +132,7 @@ static int vbox_set_pointer_visible(LPVBOXCOMM vb, bool visible)
{
VMMDevReqMousePointer __far *req = (void __far *) vb->buf;
- bzero(req, sizeof(VMMDevReqMousePointer));
+ _fmemset(req, 0, sizeof(VMMDevReqMousePointer));
req->header.size = sizeof(VMMDevReqMousePointer);
req->header.version = VMMDEV_REQUEST_HEADER_VERSION;