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
9b9d8dc3
Commit
9b9d8dc3
authored
Apr 22, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Improve GetVolumePathName stub.
parent
d7c154a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
volume.c
dlls/kernel32/volume.c
+23
-3
No files found.
dlls/kernel32/volume.c
View file @
9b9d8dc3
...
...
@@ -1406,9 +1406,19 @@ BOOL WINAPI GetDiskFreeSpaceA( LPCSTR root, LPDWORD cluster_sectors,
*/
BOOL
WINAPI
GetVolumePathNameA
(
LPCSTR
filename
,
LPSTR
volumepathname
,
DWORD
buflen
)
{
BOOL
ret
;
WCHAR
*
filenameW
=
NULL
,
*
volumeW
;
FIXME
(
"(%s, %p, %d), stub!
\n
"
,
debugstr_a
(
filename
),
volumepathname
,
buflen
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
if
(
filename
&&
!
(
filenameW
=
FILE_name_AtoW
(
filename
,
FALSE
)))
return
FALSE
;
if
(
!
(
volumeW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
buflen
*
sizeof
(
WCHAR
)
)))
return
FALSE
;
if
((
ret
=
GetVolumePathNameW
(
filenameW
,
volumeW
,
buflen
)))
FILE_name_WtoA
(
volumeW
,
-
1
,
volumepathname
,
buflen
);
HeapFree
(
GetProcessHeap
(),
0
,
volumeW
);
return
ret
;
}
/***********************************************************************
...
...
@@ -1416,8 +1426,18 @@ BOOL WINAPI GetVolumePathNameA(LPCSTR filename, LPSTR volumepathname, DWORD bufl
*/
BOOL
WINAPI
GetVolumePathNameW
(
LPCWSTR
filename
,
LPWSTR
volumepathname
,
DWORD
buflen
)
{
const
WCHAR
*
p
=
filename
;
FIXME
(
"(%s, %p, %d), stub!
\n
"
,
debugstr_w
(
filename
),
volumepathname
,
buflen
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
if
(
p
&&
tolowerW
(
p
[
0
])
>=
'a'
&&
tolowerW
(
p
[
0
])
<=
'z'
&&
p
[
1
]
==
':'
&&
p
[
2
]
==
'\\'
&&
buflen
>=
4
)
{
volumepathname
[
0
]
=
p
[
0
];
volumepathname
[
1
]
=
':'
;
volumepathname
[
2
]
=
'\\'
;
volumepathname
[
3
]
=
0
;
return
TRUE
;
}
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