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
e431d89e
Commit
e431d89e
authored
Dec 19, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Dec 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Don't test function directly when reporting GetLastError().
parent
61a12130
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
file.c
dlls/kernel32/tests/file.c
+4
-2
No files found.
dlls/kernel32/tests/file.c
View file @
e431d89e
...
...
@@ -3296,7 +3296,8 @@ static void test_GetFileInformationByHandleEx(void)
/* ensure the existence of a file in the temp folder */
ret2
=
GetTempFileNameA
(
tempPath
,
"abc"
,
0
,
tempFileName
);
ok
(
ret2
,
"GetFileInformationByHandleEx: GetTempFileNameA failed, got error %u.
\n
"
,
GetLastError
());
ok
(
GetFileAttributesA
(
tempFileName
)
!=
INVALID_FILE_ATTRIBUTES
,
"GetFileInformationByHandleEx: "
ret2
=
GetFileAttributesA
(
tempFileName
);
ok
(
ret2
!=
INVALID_FILE_ATTRIBUTES
,
"GetFileInformationByHandleEx: "
"GetFileAttributesA failed to find the temp file, got error %u.
\n
"
,
GetLastError
());
directory
=
CreateFileA
(
tempPath
,
GENERIC_READ
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
|
FILE_SHARE_DELETE
,
...
...
@@ -3359,7 +3360,8 @@ static void test_OpenFileById(void)
/* ensure the existence of a file in the temp folder */
ret2
=
GetTempFileNameA
(
tempPath
,
"abc"
,
0
,
tempFileName
);
ok
(
ret2
,
"OpenFileById: GetTempFileNameA failed, got error %u.
\n
"
,
GetLastError
());
ok
(
GetFileAttributesA
(
tempFileName
)
!=
INVALID_FILE_ATTRIBUTES
,
ret2
=
GetFileAttributesA
(
tempFileName
);
ok
(
ret2
!=
INVALID_FILE_ATTRIBUTES
,
"OpenFileById: GetFileAttributesA failed to find the temp file, got error %u
\n
"
,
GetLastError
());
ret2
=
MultiByteToWideChar
(
CP_ACP
,
0
,
tempFileName
+
strlen
(
tempPath
),
-
1
,
tempFileNameW
,
sizeof
(
tempFileNameW
)
/
sizeof
(
tempFileNameW
[
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