Commit 008cf3c1 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

kernel32: Use define instead of hardcoded value.

parent 5a9f3a38
......@@ -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();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment