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
2d13b6b7
Commit
2d13b6b7
authored
May 01, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Avoid assert().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fccb7552
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
install.c
dlls/setupapi/tests/install.c
+3
-4
No files found.
dlls/setupapi/tests/install.c
View file @
2d13b6b7
...
...
@@ -21,7 +21,6 @@
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "windef.h"
#include "winbase.h"
...
...
@@ -59,9 +58,9 @@ static void create_inf_file(LPCSTR filename, const char *data)
BOOL
ret
;
HANDLE
handle
=
CreateFileA
(
filename
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
assert
(
handle
!=
INVALID_HANDLE_VALUE
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"Failed to create %s, error %u.
\n
"
,
filename
,
GetLastError
()
);
ret
=
WriteFile
(
handle
,
data
,
strlen
(
data
),
&
res
,
NULL
);
assert
(
ret
!=
0
);
ok
(
ret
,
"Failed to write file, error %u.
\n
"
,
GetLastError
()
);
CloseHandle
(
handle
);
}
...
...
@@ -777,7 +776,7 @@ START_TEST(install)
/* Set CBT hook to disallow MessageBox creation in current thread */
hhook
=
SetWindowsHookExA
(
WH_CBT
,
cbt_hook_proc
,
0
,
GetCurrentThreadId
());
assert
(
hhook
!=
0
);
ok
(
!!
hhook
,
"Failed to set hook, error %u.
\n
"
,
GetLastError
()
);
test_cmdline
();
test_registry
();
...
...
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