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
f7e6777e
Commit
f7e6777e
authored
Apr 28, 2009
by
Guy Albertelli
Committed by
Alexandre Julliard
Apr 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fix GetVolumeInformation[AW] to require trailing \.
parent
6f139064
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
volume.c
dlls/kernel32/tests/volume.c
+0
-1
volume.c
dlls/kernel32/volume.c
+1
-1
No files found.
dlls/kernel32/tests/volume.c
View file @
f7e6777e
...
...
@@ -287,7 +287,6 @@ static void test_GetVolumeInformationA(void)
/* check for error on no trailing \ */
ret
=
pGetVolumeInformationA
(
Root_Dir0
,
vol_name_buf
,
vol_name_size
,
NULL
,
NULL
,
NULL
,
fs_name_buf
,
fs_name_len
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_NAME
,
"GetVolumeInformationA w/o '
\\
' did not fail, last error %u
\n
"
,
GetLastError
());
...
...
dlls/kernel32/volume.c
View file @
f7e6777e
...
...
@@ -526,7 +526,7 @@ BOOL WINAPI GetVolumeInformationW( LPCWSTR root, LPWSTR label, DWORD label_len,
}
else
{
if
(
!
root
[
0
]
||
root
[
1
]
!=
':'
)
if
(
!
root
[
0
]
||
root
[
1
]
!=
':'
||
root
[
lstrlenW
(
root
)
-
1
]
!=
'\\'
)
{
SetLastError
(
ERROR_INVALID_NAME
);
return
FALSE
;
...
...
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