Andrew Nguyen : kernel32/tests: Use named constants for a drive test.
Alexandre Julliard
julliard at winehq.org
Mon May 18 08:13:19 CDT 2009
Module: wine
Branch: master
Commit: 94945af5566c73fa3832f7fe70ebc6dede54861d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=94945af5566c73fa3832f7fe70ebc6dede54861d
Author: Andrew Nguyen <arethusa26 at gmail.com>
Date: Mon May 18 05:07:22 2009 -0500
kernel32/tests: Use named constants for a drive test.
---
dlls/kernel32/tests/drive.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/tests/drive.c b/dlls/kernel32/tests/drive.c
index 6bee4a7..af1cf7f 100644
--- a/dlls/kernel32/tests/drive.c
+++ b/dlls/kernel32/tests/drive.c
@@ -39,7 +39,8 @@ static void test_GetDriveTypeA(void)
for (drive[0] = 'A'; drive[0] <= 'Z'; drive[0]++)
{
type = GetDriveTypeA(drive);
- ok(type > 0 && type <= 6, "not a valid drive %c: type %u\n", drive[0], type);
+ ok(type > DRIVE_UNKNOWN && type <= DRIVE_RAMDISK,
+ "not a valid drive %c: type %u\n", drive[0], type);
if (!(logical_drives & 1))
ok(type == DRIVE_NO_ROOT_DIR,
@@ -67,7 +68,8 @@ static void test_GetDriveTypeW(void)
win_skip("GetDriveTypeW is not available on Win9x\n");
return;
}
- ok(type > 0 && type <= 6, "not a valid drive %c: type %u\n", drive[0], type);
+ ok(type > DRIVE_UNKNOWN && type <= DRIVE_RAMDISK,
+ "not a valid drive %c: type %u\n", drive[0], type);
if (!(logical_drives & 1))
ok(type == DRIVE_NO_ROOT_DIR,
More information about the wine-cvs
mailing list