Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
008cf3c1
Commit
008cf3c1
authored
Jan 31, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Feb 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Use define instead of hardcoded value.
parent
5a9f3a38
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
volume.c
dlls/kernel32/tests/volume.c
+6
-4
No files found.
dlls/kernel32/tests/volume.c
View file @
008cf3c1
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#include "wine/test.h"
#include "wine/test.h"
#include "winbase.h"
#include "winbase.h"
#include "winioctl.h"
#include <stdio.h>
#include <stdio.h>
static
HINSTANCE
hdll
;
static
HINSTANCE
hdll
;
...
@@ -509,7 +510,7 @@ static void test_enum_vols(void)
...
@@ -509,7 +510,7 @@ static void test_enum_vols(void)
pFindVolumeClose
(
hFind
);
pFindVolumeClose
(
hFind
);
}
}
static
void
test_
ioctl_560000
(
void
)
static
void
test_
disk_extents
(
void
)
{
{
BOOL
ret
;
BOOL
ret
;
DWORD
size
;
DWORD
size
;
...
@@ -523,10 +524,11 @@ static void test_ioctl_560000(void)
...
@@ -523,10 +524,11 @@ static void test_ioctl_560000(void)
return
;
return
;
}
}
size
=
0
;
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
)
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
);
CloseHandle
(
handle
);
return
;
return
;
}
}
...
@@ -555,5 +557,5 @@ START_TEST(volume)
...
@@ -555,5 +557,5 @@ START_TEST(volume)
test_GetLogicalDriveStringsW
();
test_GetLogicalDriveStringsW
();
test_GetVolumeInformationA
();
test_GetVolumeInformationA
();
test_enum_vols
();
test_enum_vols
();
test_
ioctl_560000
();
test_
disk_extents
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment