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
447e2243
Commit
447e2243
authored
Nov 12, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: GetVolumePathnameW is not present before w2k.
parent
a679b4e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
file.c
dlls/ntdll/tests/file.c
+12
-1
No files found.
dlls/ntdll/tests/file.c
View file @
447e2243
...
...
@@ -40,6 +40,8 @@
#define IO_COMPLETION_ALL_ACCESS 0x001F0003
#endif
static
BOOL
(
WINAPI
*
pGetVolumePathNameW
)(
LPCWSTR
,
LPWSTR
,
DWORD
);
static
NTSTATUS
(
WINAPI
*
pRtlFreeUnicodeString
)(
PUNICODE_STRING
);
static
VOID
(
WINAPI
*
pRtlInitUnicodeString
)(
PUNICODE_STRING
,
LPCWSTR
);
static
BOOL
(
WINAPI
*
pRtlDosPathNameToNtPathName_U
)(
LPCWSTR
,
PUNICODE_STRING
,
PWSTR
*
,
CURDIR
*
);
...
...
@@ -950,6 +952,12 @@ static void test_file_name_information(void)
HANDLE
h
;
UINT
len
;
/* GetVolumePathName is not present before w2k */
if
(
!
pGetVolumePathNameW
)
{
win_skip
(
"GetVolumePathNameW not found
\n
"
);
return
;
}
file_name_size
=
GetSystemDirectoryW
(
NULL
,
0
);
file_name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
file_name_size
*
sizeof
(
*
file_name
)
);
volume_prefix
=
HeapAlloc
(
GetProcessHeap
(),
0
,
file_name_size
*
sizeof
(
*
volume_prefix
)
);
...
...
@@ -960,7 +968,7 @@ static void test_file_name_information(void)
"GetSystemDirectoryW returned %u, expected %u.
\n
"
,
len
,
file_name_size
-
1
);
len
=
GetVolumePathNameW
(
file_name
,
volume_prefix
,
file_name_size
);
len
=
p
GetVolumePathNameW
(
file_name
,
volume_prefix
,
file_name_size
);
ok
(
len
,
"GetVolumePathNameW failed.
\n
"
);
len
=
lstrlenW
(
volume_prefix
);
...
...
@@ -1018,6 +1026,7 @@ static void test_file_name_information(void)
START_TEST
(
file
)
{
HMODULE
hkernel32
=
GetModuleHandleA
(
"kernel32.dll"
);
HMODULE
hntdll
=
GetModuleHandleA
(
"ntdll.dll"
);
if
(
!
hntdll
)
{
...
...
@@ -1025,6 +1034,8 @@ START_TEST(file)
return
;
}
pGetVolumePathNameW
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"GetVolumePathNameW"
);
pRtlFreeUnicodeString
=
(
void
*
)
GetProcAddress
(
hntdll
,
"RtlFreeUnicodeString"
);
pRtlInitUnicodeString
=
(
void
*
)
GetProcAddress
(
hntdll
,
"RtlInitUnicodeString"
);
pRtlDosPathNameToNtPathName_U
=
(
void
*
)
GetProcAddress
(
hntdll
,
"RtlDosPathNameToNtPathName_U"
);
...
...
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