André Hentschel : kernel32: Use define instead of hardcoded value.
Alexandre Julliard
julliard at winehq.org
Tue Feb 1 12:25:00 CST 2011
Module: wine
Branch: master
Commit: 008cf3c18cf9a73f1ec1a11582e2d5e90a1caa0b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=008cf3c18cf9a73f1ec1a11582e2d5e90a1caa0b
Author: André Hentschel <nerv at dawncrow.de>
Date: Mon Jan 31 19:52:54 2011 +0100
kernel32: Use define instead of hardcoded value.
---
dlls/kernel32/tests/volume.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/dlls/kernel32/tests/volume.c b/dlls/kernel32/tests/volume.c
index f632eb0..4484a80 100644
--- a/dlls/kernel32/tests/volume.c
+++ b/dlls/kernel32/tests/volume.c
@@ -20,6 +20,7 @@
#include "wine/test.h"
#include "winbase.h"
+#include "winioctl.h"
#include <stdio.h>
static HINSTANCE hdll;
@@ -509,7 +510,7 @@ static void test_enum_vols(void)
pFindVolumeClose( hFind );
}
-static void test_ioctl_560000(void)
+static void test_disk_extents(void)
{
BOOL ret;
DWORD size;
@@ -523,10 +524,11 @@ static void test_ioctl_560000(void)
return;
}
size = 0;
- ret = DeviceIoControl( handle, 0x560000, &data, sizeof(data), &data, sizeof(data), &size, NULL );
+ ret = DeviceIoControl( handle, IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS, &data,
+ sizeof(data), &data, sizeof(data), &size, NULL );
if (!ret && GetLastError() == ERROR_INVALID_FUNCTION)
{
- win_skip("ioctl 0x560000 not supported\n");
+ win_skip("IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS not supported\n");
CloseHandle( handle );
return;
}
@@ -555,5 +557,5 @@ START_TEST(volume)
test_GetLogicalDriveStringsW();
test_GetVolumeInformationA();
test_enum_vols();
- test_ioctl_560000();
+ test_disk_extents();
}
More information about the wine-cvs
mailing list