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
655e7f98
Commit
655e7f98
authored
Apr 03, 2015
by
Thomas Faber
Committed by
Alexandre Julliard
Apr 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Avoid side-effect in an assert.
parent
5d85f578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
install.c
dlls/setupapi/tests/install.c
+3
-1
No files found.
dlls/setupapi/tests/install.c
View file @
655e7f98
...
...
@@ -63,10 +63,12 @@ static BOOL (WINAPI *pSetupGetInfFileListW)(PCWSTR, DWORD, PWSTR, DWORD, PDWORD)
static
void
create_inf_file
(
LPCSTR
filename
,
const
char
*
data
)
{
DWORD
res
;
BOOL
ret
;
HANDLE
handle
=
CreateFileA
(
filename
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
assert
(
handle
!=
INVALID_HANDLE_VALUE
);
assert
(
WriteFile
(
handle
,
data
,
strlen
(
data
),
&
res
,
NULL
));
ret
=
WriteFile
(
handle
,
data
,
strlen
(
data
),
&
res
,
NULL
);
assert
(
ret
!=
0
);
CloseHandle
(
handle
);
}
...
...
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