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
c898503e
Commit
c898503e
authored
Feb 23, 2023
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree/tests: Trace the error when a Windows API fails.
parent
632c8cfd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
comtest.c
dlls/mscoree/tests/comtest.c
+1
-1
mscoree.c
dlls/mscoree/tests/mscoree.c
+3
-3
No files found.
dlls/mscoree/tests/comtest.c
View file @
c898503e
...
...
@@ -102,7 +102,7 @@ static BOOL compile_cs_to_dll(char *source_path, char *dest_path)
ok
(
ret
,
"Compilation failed
\n
"
);
ret
=
MoveFileA
(
path_temp
,
dest_path
);
ok
(
ret
,
"
Moving temporary file failed
\n
"
);
ok
(
ret
,
"
Could not move %s to %s: %lu
\n
"
,
path_temp
,
dest_path
,
GetLastError
()
);
return
ret
;
}
...
...
dlls/mscoree/tests/mscoree.c
View file @
c898503e
...
...
@@ -148,7 +148,7 @@ static BOOL runtime_is_usable(void)
si
.
cb
=
sizeof
(
si
);
ret
=
CreateProcessA
(
NULL
,
cmdline
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
si
,
&
pi
);
ok
(
ret
,
"C
reateProcessA failed
\n
"
);
ok
(
ret
,
"C
ould not create process: %lu
\n
"
,
GetLastError
()
);
if
(
!
ret
)
return
FALSE
;
...
...
@@ -159,7 +159,7 @@ static BOOL runtime_is_usable(void)
ret
=
GetExitCodeProcess
(
pi
.
hProcess
,
&
exitcode
);
CloseHandle
(
pi
.
hProcess
);
ok
(
ret
,
"GetExitCodeProcess failed
\n
"
);
ok
(
ret
,
"GetExitCodeProcess failed
: %lu
\n
"
,
GetLastError
()
);
if
(
!
ret
||
exitcode
!=
0
)
{
...
...
@@ -424,7 +424,7 @@ static void create_xml_file(LPCWSTR filename)
DWORD
dwNumberOfBytesWritten
;
HANDLE
hfile
=
CreateFileW
(
filename
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
hfile
!=
INVALID_HANDLE_VALUE
,
"
File creation failed
\n
"
);
ok
(
hfile
!=
INVALID_HANDLE_VALUE
,
"
Could not open %s for writing: %lu
\n
"
,
wine_dbgstr_w
(
filename
),
GetLastError
()
);
WriteFile
(
hfile
,
xmldata
,
sizeof
(
xmldata
)
-
1
,
&
dwNumberOfBytesWritten
,
NULL
);
CloseHandle
(
hfile
);
}
...
...
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