Changeset 37596 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib
- Timestamp:
- Jun 22, 2011 7:30:06 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 72442
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp
r36408 r37596 188 188 } 189 189 } 190 g_File = hf;190 g_File = (RTFILE)hf; 191 191 192 192 #elif defined(VBOX_VBGLR3_XFREE86) … … 267 267 g_File = NIL_RTFILE; 268 268 AssertReturnVoid(File != NIL_RTFILE); 269 APIRET rc = DosClose( File);269 APIRET rc = DosClose((uintptr_t)File); 270 270 AssertMsg(!rc, ("%ld\n", rc)); 271 271 … … 323 323 int32_t vrc = VERR_INTERNAL_ERROR; 324 324 ULONG cbOS2Data = sizeof(vrc); 325 APIRET rc = DosDevIOCtl( g_File, VBOXGUEST_IOCTL_CATEGORY, iFunction,325 APIRET rc = DosDevIOCtl((uintptr_t)g_File, VBOXGUEST_IOCTL_CATEGORY, iFunction, 326 326 pvData, cbData, &cbOS2Parm, 327 327 &vrc, sizeof(vrc), &cbOS2Data); … … 344 344 * header with an error code return field (much better alternative 345 345 * actually). */ 346 int rc = ioctl( (int)g_File, iFunction, &Hdr);346 int rc = ioctl(RTFileToNative(g_File), iFunction, &Hdr); 347 347 if (rc == -1) 348 348 { … … 356 356 int rc = xf86ioctl((int)g_File, iFunction, pvData); 357 357 # else 358 int rc = ioctl( (int)g_File, iFunction, pvData);358 int rc = ioctl(RTFileToNative(g_File), iFunction, pvData); 359 359 # endif 360 360 if (RT_LIKELY(rc == 0))
Note:
See TracChangeset
for help on using the changeset viewer.