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
7750e36b
Commit
7750e36b
authored
May 26, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
May 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix some test failures on Vista.
parent
bf353f18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
volume.c
dlls/kernel32/tests/volume.c
+8
-6
No files found.
dlls/kernel32/tests/volume.c
View file @
7750e36b
...
@@ -129,9 +129,10 @@ static void test_GetVolumeNameForVolumeMountPointA(void)
...
@@ -129,9 +129,10 @@ static void test_GetVolumeNameForVolumeMountPointA(void)
ok
(
reti
<
MAX_PATH
,
"temp path should fit into MAX_PATH
\n
"
);
ok
(
reti
<
MAX_PATH
,
"temp path should fit into MAX_PATH
\n
"
);
ret
=
pGetVolumeNameForVolumeMountPointA
(
path
,
volume
,
0
);
ret
=
pGetVolumeNameForVolumeMountPointA
(
path
,
volume
,
0
);
ok
(
ret
==
FALSE
&&
GetLastError
()
==
ERROR_FILENAME_EXCED_RANGE
,
ok
(
ret
==
FALSE
,
"GetVolumeNameForVolumeMountPointA succeeded
\n
"
);
"GetVolumeNameForVolumeMountPointA succeeded or wrong error, last=%d
\n
"
,
ok
(
GetLastError
()
==
ERROR_FILENAME_EXCED_RANGE
||
GetLastError
());
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
/* Vista */
"wrong error, last=%d
\n
"
,
GetLastError
());
if
(
0
)
{
/* these crash on XP */
if
(
0
)
{
/* these crash on XP */
ret
=
pGetVolumeNameForVolumeMountPointA
(
path
,
NULL
,
len
);
ret
=
pGetVolumeNameForVolumeMountPointA
(
path
,
NULL
,
len
);
...
@@ -195,9 +196,10 @@ static void test_GetVolumeNameForVolumeMountPointW(void)
...
@@ -195,9 +196,10 @@ static void test_GetVolumeNameForVolumeMountPointW(void)
}
}
ret
=
pGetVolumeNameForVolumeMountPointW
(
path
,
volume
,
0
);
ret
=
pGetVolumeNameForVolumeMountPointW
(
path
,
volume
,
0
);
ok
(
ret
==
FALSE
&&
GetLastError
()
==
ERROR_FILENAME_EXCED_RANGE
,
ok
(
ret
==
FALSE
,
"GetVolumeNameForVolumeMountPointA succeeded
\n
"
);
"GetVolumeNameForVolumeMountPointA succeeded or wrong error, last=%d
\n
"
,
ok
(
GetLastError
()
==
ERROR_FILENAME_EXCED_RANGE
||
GetLastError
());
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
/* Vista */
"wrong error, last=%d
\n
"
,
GetLastError
());
if
(
0
)
{
/* these crash on XP */
if
(
0
)
{
/* these crash on XP */
ret
=
pGetVolumeNameForVolumeMountPointW
(
path
,
NULL
,
len
);
ret
=
pGetVolumeNameForVolumeMountPointW
(
path
,
NULL
,
len
);
...
...
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