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
c1dafc51
Commit
c1dafc51
authored
Jul 21, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/tests: Print the id of the GetSaveFileName test on failure.
parent
6471e862
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
filedlg.c
dlls/comdlg32/tests/filedlg.c
+5
-5
No files found.
dlls/comdlg32/tests/filedlg.c
View file @
c1dafc51
...
...
@@ -1059,7 +1059,7 @@ static void test_extension(void)
char
curdir
[
MAX_PATH
];
char
*
filename_ptr
;
const
char
*
test_file_name
=
"deadbeef"
;
const
char
**
cur_filter
;
unsigned
int
i
;
DWORD
ret
;
BOOL
boolret
;
...
...
@@ -1077,13 +1077,13 @@ static void test_extension(void)
ofn
.
lpfnHook
=
test_extension_wndproc
;
ofn
.
nFileExtension
=
0
;
for
(
cur_filter
=
defext_filters
;
cur_filter
<
defext_filters
+
ARRAY_SIZE
(
defext_filters
);
cur_filter
++
)
{
ofn
.
lpstrFilter
=
*
cur_filter
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
defext_filters
);
i
++
)
{
ofn
.
lpstrFilter
=
defext_filters
[
i
]
;
strcpy
(
filename
,
test_file_name
);
boolret
=
GetSaveFileNameA
(
&
ofn
);
ok
(
boolret
,
"
expected true
\n
"
);
ok
(
boolret
,
"
%u: expected true
\n
"
,
i
);
ret
=
CommDlgExtendedError
();
ok
(
!
ret
,
"
CommDlgExtendedError returned %#x
\n
"
,
ret
);
ok
(
!
ret
,
"
%u: CommDlgExtendedError returned %#x
\n
"
,
i
,
ret
);
filename_ptr
=
ofn
.
lpstrFile
+
strlen
(
ofn
.
lpstrFile
)
-
strlen
(
test_file_name
);
ok
(
strlen
(
ofn
.
lpstrFile
)
>=
strlen
(
test_file_name
),
"Filename %s is too short
\n
"
,
ofn
.
lpstrFile
);
ok
(
strcmp
(
filename_ptr
,
test_file_name
)
==
0
,
...
...
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