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
65921ad1
Commit
65921ad1
authored
Dec 14, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version/tests: Replace some '#if 0's with 'if (0)'s.
Fix the code so it compiles without warnings.
parent
c1e7d16f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
info.c
dlls/version/tests/info.c
+9
-7
No files found.
dlls/version/tests/info.c
View file @
65921ad1
...
...
@@ -199,17 +199,18 @@ static void test_info(void)
if
(
pVersionInfo
==
0
)
return
;
#if 0
if
(
0
)
{
/* this test crashes on WinNT4
*/
boolret
=
GetFileVersionInfoA
(
"kernel32.dll"
,
0
,
retval
,
0
);
ok (!boolret, "GetFileVersionInfoA should have failed: GetLastError =
0x%08lx
\n", GetLastError());
ok
(
!
boolret
,
"GetFileVersionInfoA should have failed: GetLastError =
%d
\n
"
,
GetLastError
());
ok
((
GetLastError
()
==
ERROR_INVALID_DATA
)
||
(
GetLastError
()
==
ERROR_BAD_PATHNAME
)
||
(
GetLastError
()
==
NO_ERROR
),
"Last error wrong! ERROR_INVALID_DATA/ERROR_BAD_PATHNAME (ME)/"
"NO_ERROR (95) expected, got 0x%08
l
x\n",
"NO_ERROR (95) expected, got 0x%08x
\n
"
,
GetLastError
());
#endif
}
boolret
=
GetFileVersionInfoA
(
"kernel32.dll"
,
0
,
retval
,
pVersionInfo
);
ok
(
boolret
,
"GetFileVersionInfoA failed: GetLastError = 0x%08x
\n
"
,
GetLastError
());
...
...
@@ -228,12 +229,13 @@ static void test_info(void)
trace
(
"kernel32.dll version: %s
\n
"
,
VersionString
);
#if 0
if
(
0
)
{
/* this test crashes on WinNT4
*/
boolret
=
VerQueryValueA
(
pVersionInfo
,
"
\\
"
,
(
LPVOID
*
)
&
pFixedVersionInfo
,
0
);
ok (boolret, "VerQueryValue failed: GetLastError = 0x%08
l
x\n", GetLastError());
#endif
ok
(
boolret
,
"VerQueryValue failed: GetLastError = 0x%08x
\n
"
,
GetLastError
());
}
cleanup:
HeapFree
(
GetProcessHeap
(),
0
,
pVersionInfo
);
...
...
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