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
ec1888b7
Commit
ec1888b7
authored
Oct 28, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Use BOOL type where appropriate.
parent
3a41ebfb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
msi.c
dlls/msi/tests/msi.c
+8
-8
record.c
dlls/msi/tests/record.c
+1
-1
No files found.
dlls/msi/tests/msi.c
View file @
ec1888b7
...
...
@@ -13062,7 +13062,7 @@ done:
static
void
test_MsiEnumComponents
(
void
)
{
UINT
r
;
int
found1
,
found2
;
BOOL
found1
,
found2
;
DWORD
index
;
char
comp1
[
39
],
comp2
[
39
],
guid
[
39
];
char
comp_squashed1
[
33
],
comp_squashed2
[
33
];
...
...
@@ -13105,11 +13105,11 @@ static void test_MsiEnumComponents(void)
index
=
0
;
guid
[
0
]
=
0
;
found1
=
found2
=
0
;
found1
=
found2
=
FALSE
;
while
(
!
MsiEnumComponentsA
(
index
,
guid
))
{
if
(
!
strcmp
(
guid
,
comp1
))
found1
=
1
;
if
(
!
strcmp
(
guid
,
comp2
))
found2
=
1
;
if
(
!
strcmp
(
guid
,
comp1
))
found1
=
TRUE
;
if
(
!
strcmp
(
guid
,
comp2
))
found2
=
TRUE
;
ok
(
guid
[
0
],
"empty guid
\n
"
);
guid
[
0
]
=
0
;
index
++
;
...
...
@@ -13128,7 +13128,7 @@ done:
static
void
test_MsiEnumComponentsEx
(
void
)
{
UINT
r
;
int
found1
,
found2
;
BOOL
found1
,
found2
;
DWORD
len
,
index
;
MSIINSTALLCONTEXT
context
;
char
comp1
[
39
],
comp2
[
39
],
guid
[
39
],
sid
[
128
];
...
...
@@ -13181,7 +13181,7 @@ static void test_MsiEnumComponentsEx(void)
context
=
0xdeadbeef
;
sid
[
0
]
=
0
;
len
=
sizeof
(
sid
);
found1
=
found2
=
0
;
found1
=
found2
=
FALSE
;
while
(
!
pMsiEnumComponentsExA
(
"S-1-1-0"
,
MSIINSTALLCONTEXT_ALL
,
index
,
guid
,
&
context
,
sid
,
&
len
))
{
if
(
!
strcmp
(
comp1
,
guid
))
...
...
@@ -13189,14 +13189,14 @@ static void test_MsiEnumComponentsEx(void)
ok
(
context
==
MSIINSTALLCONTEXT_MACHINE
,
"got %u
\n
"
,
context
);
ok
(
!
sid
[
0
],
"got
\"
%s
\"\n
"
,
sid
);
ok
(
!
len
,
"unexpected length %u
\n
"
,
len
);
found1
=
1
;
found1
=
TRUE
;
}
if
(
!
strcmp
(
comp2
,
guid
))
{
ok
(
context
==
MSIINSTALLCONTEXT_USERUNMANAGED
,
"got %u
\n
"
,
context
);
ok
(
sid
[
0
],
"empty sid
\n
"
);
ok
(
len
==
strlen
(
sid
),
"unexpected length %u
\n
"
,
len
);
found2
=
1
;
found2
=
TRUE
;
}
index
++
;
guid
[
0
]
=
0
;
...
...
dlls/msi/tests/record.c
View file @
ec1888b7
...
...
@@ -41,7 +41,7 @@ static BOOL create_temp_file(char *name)
handle
=
CreateFileA
(
name
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
handle
==
INVALID_HANDLE_VALUE
)
return
0
;
return
FALSE
;
for
(
i
=
0
;
i
<
26
;
i
++
)
buffer
[
i
]
=
i
+
'a'
;
r
=
WriteFile
(
handle
,
buffer
,
sizeof
buffer
,
&
sz
,
NULL
);
...
...
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