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
5d38ddc2
Commit
5d38ddc2
authored
Aug 31, 2009
by
Ge van Geldorp
Committed by
Alexandre Julliard
Aug 31, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/tests: Fix test on Win7.
parent
ae516dba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
filedlg.c
dlls/comdlg32/tests/filedlg.c
+3
-0
No files found.
dlls/comdlg32/tests/filedlg.c
View file @
5d38ddc2
...
...
@@ -634,9 +634,11 @@ static void test_ok(void)
OPENFILENAME
ofn
=
{
sizeof
(
OPENFILENAME
)};
char
filename
[
1024
]
=
{
0
};
char
tmpfilename
[
MAX_PATH
];
char
curdir
[
MAX_PATH
];
int
i
;
DWORD
ret
;
ok
(
GetCurrentDirectoryA
(
sizeof
(
curdir
),
curdir
)
!=
0
,
"Failed to get current dir err %d
\n
"
,
GetLastError
());
if
(
!
GetTempFileNameA
(
"."
,
"txt"
,
0
,
tmpfilename
))
{
skip
(
"Failed to create a temporary file name
\n
"
);
return
;
...
...
@@ -659,6 +661,7 @@ 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
());
}
ret
=
DeleteFileA
(
tmpfilename
);
ok
(
ret
,
"Failed to delete temporary file %s err %d
\n
"
,
tmpfilename
,
GetLastError
());
...
...
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