- Don't free an invalid handle. Suggested by Johannes. Test failure remains in the...
authorAleksey Bragin <aleksey@reactos.org>
Sat, 26 Feb 2011 13:31:58 +0000 (13:31 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Sat, 26 Feb 2011 13:31:58 +0000 (13:31 +0000)
- P.S. Not much of an issue if it's lost during the next tests sync, as it would be a clearly visible change.
See issue #5771 for more details.

svn path=/trunk/; revision=50908

rostests/winetests/kernel32/volume.c

index f94d9cb..14c3330 100644 (file)
@@ -427,7 +427,7 @@ static void test_enum_vols(void)
     hFind = pFindFirstVolumeA( Volume_2, MAX_PATH );
     ok(hFind != INVALID_HANDLE_VALUE, "FindFirstVolume failed, err=%u\n",
                 GetLastError());
-
+    if (hFind != INVALID_HANDLE_VALUE) {
     do
     {
         /* validate correct length of unique volume name  */
@@ -440,6 +440,7 @@ static void test_enum_vols(void)
     } while (pFindNextVolumeA( hFind, Volume_2, MAX_PATH ));
     ok(found, "volume name %s not found by Find[First/Next]Volume\n", Volume_1);
     pFindVolumeClose( hFind );
+    }
 }
 
 START_TEST(volume)