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
8c83c66b
Commit
8c83c66b
authored
Jun 05, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jun 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Remove debug code from GetProductInfo.
parent
6f9f6b1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
version.c
dlls/kernel32/tests/version.c
+0
-29
No files found.
dlls/kernel32/tests/version.c
View file @
8c83c66b
...
...
@@ -44,27 +44,8 @@ static void init_function_pointers(void)
KERNEL32_GET_PROC
(
VerSetConditionMask
);
}
#define PRODUCT2NAME(x) case x:\
return #x;
static
const
char
*
product_to_name
(
DWORD
product
)
{
switch
(
product
)
{
PRODUCT2NAME
(
PRODUCT_PROFESSIONAL
)
PRODUCT2NAME
(
PRODUCT_STANDARD_SERVER
)
PRODUCT2NAME
(
PRODUCT_BUSINESS
)
PRODUCT2NAME
(
PRODUCT_ULTIMATE
)
PRODUCT2NAME
(
PRODUCT_ULTIMATE_N
)
PRODUCT2NAME
(
PRODUCT_HOME_PREMIUM
)
}
return
""
;
}
#undef PRODUCT2NAME
static
void
test_GetProductInfo
(
void
)
{
OSVERSIONINFOEXA
os
;
DWORD
product
;
DWORD
res
;
DWORD
table
[]
=
{
9
,
8
,
7
,
6
,
...
...
@@ -94,22 +75,12 @@ static void test_GetProductInfo(void)
return
;
}
memset
(
&
os
,
0
,
sizeof
(
OSVERSIONINFOEXA
));
os
.
dwOSVersionInfoSize
=
sizeof
(
OSVERSIONINFOEXA
);
res
=
GetVersionExA
((
OSVERSIONINFOA
*
)
&
os
);
ok
(
res
,
"got %d (expected TRUE)
\n
"
,
res
);
trace
(
"%s %u.%u (SP: %u.%u)
\n
"
,
os
.
wProductType
==
VER_NT_WORKSTATION
?
"Workstation"
:
"Server"
,
os
.
dwMajorVersion
,
os
.
dwMinorVersion
,
os
.
wServicePackMajor
,
os
.
wServicePackMinor
);
while
(
*
entry
)
{
/* SetLastError() / GetLastError(): value is untouched */
product
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
res
=
pGetProductInfo
(
entry
[
0
],
entry
[
1
],
entry
[
2
],
entry
[
3
],
&
product
);
trace
(
"%d.%d / %d.%d: got %d and 0x%x %s
\n
"
,
entry
[
0
],
entry
[
1
],
entry
[
2
],
entry
[
3
],
res
,
product
,
product_to_name
(
product
));
if
(
entry
[
0
]
>=
6
)
ok
(
res
&&
(
product
>
PRODUCT_UNDEFINED
)
&&
(
product
<=
PRODUCT_EMBEDDED
)
&&
(
GetLastError
()
==
0xdeadbeef
),
...
...
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