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
a608fe93
Commit
a608fe93
authored
Dec 29, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Dec 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/tests: Don't test function directly when reporting GetLastError().
parent
f0b9d9fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
filedlg.c
dlls/comdlg32/tests/filedlg.c
+8
-3
No files found.
dlls/comdlg32/tests/filedlg.c
View file @
a608fe93
...
...
@@ -647,8 +647,10 @@ static void test_ok(void)
char
curdir
[
MAX_PATH
];
int
i
;
DWORD
ret
;
BOOL
cdret
;
ok
(
GetCurrentDirectoryA
(
sizeof
(
curdir
),
curdir
)
!=
0
,
"Failed to get current dir err %d
\n
"
,
GetLastError
());
cdret
=
GetCurrentDirectoryA
(
sizeof
(
curdir
),
curdir
);
ok
(
cdret
,
"Failed to get current dir err %d
\n
"
,
GetLastError
());
if
(
!
GetTempFileNameA
(
"."
,
"txt"
,
0
,
tmpfilename
))
{
skip
(
"Failed to create a temporary file name
\n
"
);
return
;
...
...
@@ -671,7 +673,8 @@ static void test_ok(void)
ok
(
ret
==
ok_testcases
[
i
].
expclose
,
"testid %d: GetOpenFileName returned %#x
\n
"
,
i
,
ret
);
ret
=
CommDlgExtendedError
();
ok
(
!
ret
,
"CommDlgExtendedError returned %#x
\n
"
,
ret
);
ok
(
SetCurrentDirectoryA
(
curdir
),
"Failed to restore current dir err %d
\n
"
,
GetLastError
());
cdret
=
SetCurrentDirectoryA
(
curdir
);
ok
(
cdret
,
"Failed to restore current dir err %d
\n
"
,
GetLastError
());
}
ret
=
DeleteFileA
(
tmpfilename
);
ok
(
ret
,
"Failed to delete temporary file %s err %d
\n
"
,
tmpfilename
,
GetLastError
());
...
...
@@ -1057,8 +1060,10 @@ static void test_extension(void)
char
*
filename_ptr
;
const
char
*
test_file_name
=
"deadbeef"
;
DWORD
ret
;
BOOL
cdret
;
ok
(
GetCurrentDirectoryA
(
sizeof
(
curdir
),
curdir
)
!=
0
,
"Failed to get current dir err %d
\n
"
,
GetLastError
());
cdret
=
GetCurrentDirectoryA
(
sizeof
(
curdir
),
curdir
);
ok
(
cdret
,
"Failed to get current dir err %d
\n
"
,
GetLastError
());
/* Ignore .* extension */
ofn
.
lStructSize
=
sizeof
(
ofn
);
...
...
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