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
d2792275
Commit
d2792275
authored
Feb 24, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Don't use the return value of the ok macro.
parent
d6cfc322
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
shlexec.c
dlls/shell32/tests/shlexec.c
+9
-9
No files found.
dlls/shell32/tests/shlexec.c
View file @
d2792275
...
...
@@ -672,28 +672,28 @@ static int StrCmpPath(const char* s1, const char* s2)
return
0
;
}
static
int
_okChildString
(
const
char
*
file
,
int
line
,
const
char
*
key
,
const
char
*
expected
)
static
void
_okChildString
(
const
char
*
file
,
int
line
,
const
char
*
key
,
const
char
*
expected
)
{
char
*
result
;
result
=
getChildString
(
"Arguments"
,
key
);
return
ok_
(
file
,
line
)(
lstrcmpiA
(
result
,
expected
)
==
0
,
"%s expected '%s', got '%s'
\n
"
,
key
,
expected
,
result
);
ok_
(
file
,
line
)(
lstrcmpiA
(
result
,
expected
)
==
0
,
"%s expected '%s', got '%s'
\n
"
,
key
,
expected
,
result
);
}
static
int
_okChildPath
(
const
char
*
file
,
int
line
,
const
char
*
key
,
const
char
*
expected
)
static
void
_okChildPath
(
const
char
*
file
,
int
line
,
const
char
*
key
,
const
char
*
expected
)
{
char
*
result
;
result
=
getChildString
(
"Arguments"
,
key
);
return
ok_
(
file
,
line
)(
StrCmpPath
(
result
,
expected
)
==
0
,
"%s expected '%s', got '%s'
\n
"
,
key
,
expected
,
result
);
ok_
(
file
,
line
)(
StrCmpPath
(
result
,
expected
)
==
0
,
"%s expected '%s', got '%s'
\n
"
,
key
,
expected
,
result
);
}
static
int
_okChildInt
(
const
char
*
file
,
int
line
,
const
char
*
key
,
int
expected
)
static
void
_okChildInt
(
const
char
*
file
,
int
line
,
const
char
*
key
,
int
expected
)
{
INT
result
;
result
=
GetPrivateProfileIntA
(
"Arguments"
,
key
,
expected
,
child_file
);
return
ok_
(
file
,
line
)(
result
==
expected
,
"%s expected %d, but got %d
\n
"
,
key
,
expected
,
result
);
ok_
(
file
,
line
)(
result
==
expected
,
"%s expected %d, but got %d
\n
"
,
key
,
expected
,
result
);
}
#define okChildString(key, expected) _okChildString(__FILE__, __LINE__, (key), (expected))
...
...
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