Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2879c39d
Commit
2879c39d
authored
Jun 20, 2008
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Jun 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/tests: Make sure no ANSI strings are passed to Unicode functions.
parent
901969f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
filedlg.c
dlls/comdlg32/tests/filedlg.c
+16
-11
No files found.
dlls/comdlg32/tests/filedlg.c
View file @
2879c39d
...
...
@@ -86,31 +86,36 @@ static void test_DialogCancel(void)
ok
(
CDERR_INITIALIZATION
==
CommDlgExtendedError
(),
"expected %d, got %d
\n
"
,
CDERR_INITIALIZATION
,
CommDlgExtendedError
());
SetLastError
(
0xdeadbeef
);
result
=
GetOpenFileNameW
((
LPOPENFILENAMEW
)
&
ofn
);
if
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
skip
(
"GetOpenFileNameW is not implemented
\n
"
);
else
{
result
=
GetSaveFileNameA
(
&
ofn
);
ok
(
0
==
result
,
"expected %d, got %d
\n
"
,
0
,
result
);
ok
(
0
==
CommDlgExtendedError
(),
"expected %d, got %d
\n
"
,
0
,
CommDlgExtendedError
());
}
PrintDlgA
(
NULL
);
ok
(
CDERR_INITIALIZATION
==
CommDlgExtendedError
(),
"expected %d, got %d
\n
"
,
CDERR_INITIALIZATION
,
CommDlgExtendedError
());
result
=
GetSaveFileNameA
(
&
ofn
);
o
k
(
0
==
result
,
"expected %d, got %d
\n
"
,
0
,
result
)
;
o
k
(
0
==
CommDlgExtendedError
(),
"expected %d, got %d
\n
"
,
0
,
CommDlgExtendedError
())
;
/* Before passing the ofn to Unicode functions, remove the ANSI strings */
o
fn
.
lpstrFilter
=
NULL
;
o
fn
.
lpstrInitialDir
=
NULL
;
ofn
.
lpstrDefExt
=
NULL
;
PrintDlgA
(
NULL
);
ok
(
CDERR_INITIALIZATION
==
CommDlgExtendedError
(),
"expected %d, got %d
\n
"
,
CDERR_INITIALIZATION
,
CommDlgExtendedError
());
SetLastError
(
0xdeadbeef
);
result
=
GetOpenFileNameW
((
LPOPENFILENAMEW
)
&
ofn
);
if
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
skip
(
"GetOpenFileNameW is not implemented
\n
"
);
else
{
ok
(
0
==
result
,
"expected %d, got %d
\n
"
,
0
,
result
);
ok
(
0
==
CommDlgExtendedError
(),
"expected %d, got %d
\n
"
,
0
,
CommDlgExtendedError
());
}
SetLastError
(
0xdeadbeef
);
result
=
GetSaveFileNameW
((
LPOPENFILENAMEW
)
&
ofn
);
if
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
skip
(
"GetSaveFileNameW is not implemented
\n
"
);
...
...
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