Changeset 39027 in vbox
- Timestamp:
- Oct 19, 2011 9:58:41 AM (13 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/fileio-win.cpp
r39025 r39027 30 30 *******************************************************************************/ 31 31 #define LOG_GROUP RTLOGGROUP_DIR 32 #ifndef _WIN32_WINNT 33 # define _WIN32_WINNT 0x0500 34 #endif 32 35 #include <Windows.h> 33 36 … … 632 635 * GetFileSize works for most handles. 633 636 */ 634 int rc;635 637 ULARGE_INTEGER Size; 636 638 Size.LowPart = GetFileSize((HANDLE)RTFileToNative(hFile), &Size.HighPart); … … 638 640 { 639 641 *pcbSize = Size.QuadPart; 640 if (Size.QuadPart) 641 return VINF_SUCCESS; 642 rc = VINF_SUCCESS; 643 /** @todo Check what GetFileSize returns on disks and volume 644 * handles! */ 645 } 646 else 647 rc = RTErrConvertFromWin32(GetLastError()); 648 #if 0 649 /* 650 * Could it be a volume? 642 return VINF_SUCCESS; 643 } 644 int rc = RTErrConvertFromWin32(GetLastError()); 645 646 /* 647 * Could it be a volume or a disk? 651 648 */ 652 649 DISK_GEOMETRY DriveGeo; … … 676 673 } 677 674 } 678 #endif679 675 680 676 /* -
trunk/src/VBox/Runtime/testcase/Makefile.kmk
r38082 r39027 61 61 tstRTFileAio \ 62 62 tstRTFileAppend-1 \ 63 tstRTFileGetSize-1 \ 63 64 tstFileLock \ 64 65 tstFork \ … … 233 234 tstRTFileAppend-1_SOURCES = tstRTFileAppend-1.cpp 234 235 236 tstRTFileGetSize-1_TEMPLATE = VBOXR3TSTEXE 237 tstRTFileGetSize-1_SOURCES = tstRTFileGetSize-1.cpp 238 235 239 tstFileAppendWin-1_SOURCES = tstFileAppendWin-1.cpp 236 240
Note:
See TracChangeset
for help on using the changeset viewer.