VirtualBox

Ignore:
Timestamp:
Jun 22, 2011 7:30:06 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72442
Message:

*: RTFILE becomes a pointer, RTFileOpen++ expands it's flags paramter from uint32_t to uint64_t.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp

    r36408 r37596  
    188188        }
    189189    }
    190     g_File = hf;
     190    g_File = (RTFILE)hf;
    191191
    192192#elif defined(VBOX_VBGLR3_XFREE86)
     
    267267    g_File = NIL_RTFILE;
    268268    AssertReturnVoid(File != NIL_RTFILE);
    269     APIRET rc = DosClose(File);
     269    APIRET rc = DosClose((uintptr_t)File);
    270270    AssertMsg(!rc, ("%ld\n", rc));
    271271
     
    323323    int32_t vrc = VERR_INTERNAL_ERROR;
    324324    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,
    326326                            pvData, cbData, &cbOS2Parm,
    327327                            &vrc, sizeof(vrc), &cbOS2Data);
     
    344344 *        header with an error code return field (much better alternative
    345345 *        actually). */
    346     int rc = ioctl((int)g_File, iFunction, &Hdr);
     346    int rc = ioctl(RTFileToNative(g_File), iFunction, &Hdr);
    347347    if (rc == -1)
    348348    {
     
    356356    int rc = xf86ioctl((int)g_File, iFunction, pvData);
    357357# else
    358     int rc = ioctl((int)g_File, iFunction, pvData);
     358    int rc = ioctl(RTFileToNative(g_File), iFunction, pvData);
    359359# endif
    360360    if (RT_LIKELY(rc == 0))
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette