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
ec596c06
Commit
ec596c06
authored
Jun 28, 2004
by
Stefan Leichter
Committed by
Alexandre Julliard
Jun 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tests of GetFileVersionInfoSizeA for win98 / XP.
parent
3186bd23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
15 deletions
+20
-15
info.c
dlls/version/tests/info.c
+20
-15
No files found.
dlls/version/tests/info.c
View file @
ec596c06
...
@@ -32,9 +32,10 @@ static void test_info_size(void)
...
@@ -32,9 +32,10 @@ static void test_info_size(void)
ok
(
!
retval
,
ok
(
!
retval
,
"GetFileVersionInfoSizeA result wrong! 0L expected, got 0x%08lx
\n
"
,
"GetFileVersionInfoSizeA result wrong! 0L expected, got 0x%08lx
\n
"
,
retval
);
retval
);
ok
(
ERROR_RESOURCE_DATA_NOT_FOUND
==
GetLastError
(),
ok
(
(
ERROR_RESOURCE_DATA_NOT_FOUND
==
GetLastError
())
||
"Last error wrong! ERROR_RESOURCE_DATA_NOT_FOUND expected, got 0x%08lx
\n
"
,
(
ERROR_INVALID_PARAMETER
==
GetLastError
()),
GetLastError
());
"Last error wrong! ERROR_RESOURCE_DATA_NOT_FOUND/ERROR_INVALID_PARAMETER "
"(98) expected, got 0x%08lx
\n
"
,
GetLastError
());
hdl
=
0x55555555
;
hdl
=
0x55555555
;
SetLastError
(
-
1L
);
SetLastError
(
-
1L
);
...
@@ -42,9 +43,10 @@ static void test_info_size(void)
...
@@ -42,9 +43,10 @@ static void test_info_size(void)
ok
(
!
retval
,
ok
(
!
retval
,
"GetFileVersionInfoSizeA result wrong! 0L expected, got 0x%08lx
\n
"
,
"GetFileVersionInfoSizeA result wrong! 0L expected, got 0x%08lx
\n
"
,
retval
);
retval
);
ok
(
ERROR_RESOURCE_DATA_NOT_FOUND
==
GetLastError
(),
ok
(
(
ERROR_RESOURCE_DATA_NOT_FOUND
==
GetLastError
())
||
"Last error wrong! ERROR_RESOURCE_DATA_NOT_FOUND expected, got 0x%08lx
\n
"
,
(
ERROR_INVALID_PARAMETER
==
GetLastError
()),
GetLastError
());
"Last error wrong! ERROR_RESOURCE_DATA_NOT_FOUND/ERROR_INVALID_PARAMETER "
"(98) expected, got 0x%08lx
\n
"
,
GetLastError
());
ok
(
hdl
==
0L
,
ok
(
hdl
==
0L
,
"Handle wrong! 0L expected, got 0x%08lx
\n
"
,
hdl
);
"Handle wrong! 0L expected, got 0x%08lx
\n
"
,
hdl
);
...
@@ -53,9 +55,10 @@ static void test_info_size(void)
...
@@ -53,9 +55,10 @@ static void test_info_size(void)
ok
(
!
retval
,
ok
(
!
retval
,
"GetFileVersionInfoSizeA result wrong! 0L expected, got 0x%08lx
\n
"
,
"GetFileVersionInfoSizeA result wrong! 0L expected, got 0x%08lx
\n
"
,
retval
);
retval
);
ok
(
ERROR_RESOURCE_DATA_NOT_FOUND
==
GetLastError
(),
ok
(
(
ERROR_RESOURCE_DATA_NOT_FOUND
==
GetLastError
())
||
"Last error wrong! ERROR_RESOURCE_DATA_NOT_FOUND expected, got 0x%08lx
\n
"
,
(
ERROR_BAD_PATHNAME
==
GetLastError
()),
GetLastError
());
"Last error wrong! ERROR_RESOURCE_DATA_NOT_FOUND/ERROR_BAD_PATHNAME "
"(98) expected, got 0x%08lx
\n
"
,
GetLastError
());
hdl
=
0x55555555
;
hdl
=
0x55555555
;
SetLastError
(
-
1L
);
SetLastError
(
-
1L
);
...
@@ -63,9 +66,10 @@ static void test_info_size(void)
...
@@ -63,9 +66,10 @@ static void test_info_size(void)
ok
(
!
retval
,
ok
(
!
retval
,
"GetFileVersionInfoSizeA result wrong! 0L expected, got 0x%08lx
\n
"
,
"GetFileVersionInfoSizeA result wrong! 0L expected, got 0x%08lx
\n
"
,
retval
);
retval
);
ok
(
ERROR_RESOURCE_DATA_NOT_FOUND
==
GetLastError
(),
ok
(
(
ERROR_RESOURCE_DATA_NOT_FOUND
==
GetLastError
())
||
"Last error wrong! ERROR_RESOURCE_DATA_NOT_FOUND expected, got 0x%08lx
\n
"
,
(
ERROR_BAD_PATHNAME
==
GetLastError
()),
GetLastError
());
"Last error wrong! ERROR_RESOURCE_DATA_NOT_FOUND/ERROR_BAD_PATHNAME "
"(98) expected, got 0x%08lx
\n
"
,
GetLastError
());
ok
(
hdl
==
0L
,
ok
(
hdl
==
0L
,
"Handle wrong! 0L expected, got 0x%08lx
\n
"
,
hdl
);
"Handle wrong! 0L expected, got 0x%08lx
\n
"
,
hdl
);
...
@@ -95,9 +99,10 @@ static void test_info_size(void)
...
@@ -95,9 +99,10 @@ static void test_info_size(void)
ok
(
!
retval
,
ok
(
!
retval
,
"GetFileVersionInfoSizeA result wrong! 0L expected, got 0x%08lx
\n
"
,
"GetFileVersionInfoSizeA result wrong! 0L expected, got 0x%08lx
\n
"
,
retval
);
retval
);
ok
(
ERROR_FILE_NOT_FOUND
==
GetLastError
(),
ok
(
(
ERROR_FILE_NOT_FOUND
==
GetLastError
())
||
"Last error wrong! ERROR_FILE_NOT_FOUND expected, got 0x%08lx
\n
"
,
(
ERROR_RESOURCE_DATA_NOT_FOUND
==
GetLastError
()),
GetLastError
());
"Last error wrong! ERROR_FILE_NOT_FOUND/ERROR_RESOURCE_DATA_NOT_FOUND "
"(XP) expected, got 0x%08lx
\n
"
,
GetLastError
());
}
}
START_TEST
(
info
)
START_TEST
(
info
)
...
...
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