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
8446f5c0
Commit
8446f5c0
authored
Dec 02, 2010
by
Austin Lund
Committed by
Alexandre Julliard
Dec 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fixed SHPathPrepareForWriteW tests on Asian platforms.
parent
fac67412
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
shlfileop.c
dlls/shell32/tests/shlfileop.c
+14
-1
No files found.
dlls/shell32/tests/shlfileop.c
View file @
8446f5c0
...
...
@@ -2065,6 +2065,7 @@ static void test_sh_path_prepare(void)
HRESULT
res
;
CHAR
path
[
MAX_PATH
];
CHAR
UNICODE_PATH_A
[
MAX_PATH
];
BOOL
UsedDefaultChar
;
if
(
!
pSHPathPrepareForWriteA
)
{
...
...
@@ -2156,7 +2157,19 @@ static void test_sh_path_prepare(void)
win_skip
(
"Skipping SHPathPrepareForWriteW tests
\n
"
);
return
;
}
WideCharToMultiByte
(
CP_ACP
,
0
,
UNICODE_PATH
,
-
1
,
UNICODE_PATH_A
,
sizeof
(
UNICODE_PATH_A
),
NULL
,
NULL
);
SetLastError
(
0xdeadbeef
);
UsedDefaultChar
=
FALSE
;
if
(
WideCharToMultiByte
(
CP_ACP
,
WC_NO_BEST_FIT_CHARS
,
UNICODE_PATH
,
-
1
,
UNICODE_PATH_A
,
sizeof
(
UNICODE_PATH_A
),
NULL
,
&
UsedDefaultChar
)
==
0
)
{
win_skip
(
"Could not convert Unicode path name to multibyte (%d)
\n
"
,
GetLastError
());
return
;
}
if
(
UsedDefaultChar
)
{
win_skip
(
"Could not find unique multibyte representation for directory name using default codepage
\n
"
);
return
;
}
/* unicode directory doesn't exist, SHPPFW_NONE */
RemoveDirectoryA
(
UNICODE_PATH_A
);
...
...
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