VirtualBox

Changeset 37598 in vbox


Ignore:
Timestamp:
Jun 22, 2011 8:58:35 PM (13 years ago)
Author:
vboxsync
Message:

build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/fileio-win.cpp

    r37596 r37598  
    7575    {
    7676        SetLastError(NO_ERROR);
    77         off.LowPart = SetFilePointer(RTFileToNative(hFile), off.LowPart, &off.HighPart, uMethod);
     77        off.LowPart = SetFilePointer((HANDLE)RTFileToNative(hFile), off.LowPart, &off.HighPart, uMethod);
    7878        fRc = GetLastError() == NO_ERROR;
    7979    }
     
    123123{
    124124    HANDLE h = (HANDLE)uNative;
    125     if (    h == INVALID_HANDLE_VALUE
    126         ||  (RTFILE)uNative != uNative)
     125    AssertCompile(sizeof(h) == sizeof(uNative));
     126    if (h == INVALID_HANDLE_VALUE)
    127127    {
    128128        AssertMsgFailed(("%p\n", uNative));
     
    502502                    int rc = RTErrConvertFromWin32(GetLastError());
    503503                    if (   rc == VERR_DISK_FULL
    504                         && IsBeyondLimit(RTFileToNative(hFile), cbToWriteAdj - cbWritten, FILE_CURRENT)
     504                        && IsBeyondLimit(hFile, cbToWriteAdj - cbWritten, FILE_CURRENT)
    505505                       )
    506506                        rc = VERR_FILE_TOO_BIG;
Note: See TracChangeset for help on using the changeset viewer.

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