Alexandre Julliard : kernel32/tests: Fix the FindFirstVolume test on Vista.

Alexandre Julliard julliard at winehq.org
Sat Mar 22 08:18:38 CDT 2008


Module: wine
Branch: master
Commit: c3ae7d1983471e101796fc12cdb7798b83bd779c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c3ae7d1983471e101796fc12cdb7798b83bd779c

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sat Mar 22 13:09:57 2008 +0100

kernel32/tests: Fix the FindFirstVolume test on Vista.

---

 dlls/kernel32/tests/volume.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/tests/volume.c b/dlls/kernel32/tests/volume.c
index da34f54..f238146 100644
--- a/dlls/kernel32/tests/volume.c
+++ b/dlls/kernel32/tests/volume.c
@@ -59,7 +59,9 @@ static void test_FindFirstVolume(void)
 
     handle = pFindFirstVolumeA( volume, 0 );
     ok( handle == INVALID_HANDLE_VALUE, "succeeded with short buffer\n" );
-    ok( GetLastError() == ERROR_FILENAME_EXCED_RANGE, "wrong error %u\n", GetLastError() );
+    ok( GetLastError() == ERROR_MORE_DATA ||  /* XP */
+        GetLastError() == ERROR_FILENAME_EXCED_RANGE,  /* Vista */
+        "wrong error %u\n", GetLastError() );
     handle = pFindFirstVolumeA( volume, 49 );
     ok( handle == INVALID_HANDLE_VALUE, "succeeded with short buffer\n" );
     ok( GetLastError() == ERROR_FILENAME_EXCED_RANGE, "wrong error %u\n", GetLastError() );




More information about the wine-cvs mailing list