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
5a701ab6
Commit
5a701ab6
authored
May 20, 2008
by
James Hawkins
Committed by
Alexandre Julliard
May 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Fix a few test failures in win2k3.
parent
c659ad36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
devinst.c
dlls/setupapi/tests/devinst.c
+11
-14
No files found.
dlls/setupapi/tests/devinst.c
View file @
5a701ab6
...
@@ -804,8 +804,9 @@ static void testDevRegKey(void)
...
@@ -804,8 +804,9 @@ static void testDevRegKey(void)
DIREG_DRV
,
0
);
DIREG_DRV
,
0
);
todo_wine
todo_wine
ok
(
key
==
INVALID_HANDLE_VALUE
&&
ok
(
key
==
INVALID_HANDLE_VALUE
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
(
GetLastError
()
==
ERROR_INVALID_DATA
||
"Expected ERROR_INVALID_DATA, got %08x
\n
"
,
GetLastError
());
GetLastError
()
==
ERROR_ACCESS_DENIED
),
/* win2k3 */
"Expected ERROR_INVALID_DATA or ERROR_ACCESS_DENIED, got %08x
\n
"
,
GetLastError
());
key
=
pSetupDiOpenDevRegKey
(
set
,
&
devInfo
,
DICS_FLAG_GLOBAL
,
0
,
key
=
pSetupDiOpenDevRegKey
(
set
,
&
devInfo
,
DICS_FLAG_GLOBAL
,
0
,
DIREG_DRV
,
KEY_READ
);
DIREG_DRV
,
KEY_READ
);
ok
(
key
!=
INVALID_HANDLE_VALUE
,
"SetupDiOpenDevRegKey failed: %08x
\n
"
,
ok
(
key
!=
INVALID_HANDLE_VALUE
,
"SetupDiOpenDevRegKey failed: %08x
\n
"
,
...
@@ -914,12 +915,11 @@ static void testDeviceRegistryPropertyA()
...
@@ -914,12 +915,11 @@ static void testDeviceRegistryPropertyA()
todo_wine
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_REG_PROPERTY
,
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_REG_PROPERTY
,
"Expected ERROR_INVALID_REG_PROPERTY, got %08x
\n
"
,
GetLastError
());
"Expected ERROR_INVALID_REG_PROPERTY, got %08x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
/* GetLastError() returns nonsense in win2k3 */
ret
=
pSetupDiSetDeviceRegistryPropertyA
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
ret
=
pSetupDiSetDeviceRegistryPropertyA
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
NULL
,
0
);
NULL
,
0
);
todo_wine
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
ok
(
!
ret
,
"Expected failure, got %d
\n
"
,
ret
);
"Expected ERROR_INVALID_DATA, got %08x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
pSetupDiSetDeviceRegistryPropertyA
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
ret
=
pSetupDiSetDeviceRegistryPropertyA
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
(
PBYTE
)
friendlyName
,
buflen
);
(
PBYTE
)
friendlyName
,
buflen
);
...
@@ -937,11 +937,10 @@ static void testDeviceRegistryPropertyA()
...
@@ -937,11 +937,10 @@ static void testDeviceRegistryPropertyA()
todo_wine
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_REG_PROPERTY
,
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_REG_PROPERTY
,
"Expected ERROR_INVALID_REG_PROPERTY, got %08x
\n
"
,
GetLastError
());
"Expected ERROR_INVALID_REG_PROPERTY, got %08x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
/* GetLastError() returns nonsense in win2k3 */
ret
=
pSetupDiGetDeviceRegistryPropertyA
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
ret
=
pSetupDiGetDeviceRegistryPropertyA
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
NULL
,
NULL
,
buflen
,
NULL
);
NULL
,
NULL
,
buflen
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
ok
(
!
ret
,
"Expected failure, got %d
\n
"
,
ret
);
"Expected ERROR_INVALID_DATA, got %08x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
pSetupDiGetDeviceRegistryPropertyA
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
ret
=
pSetupDiGetDeviceRegistryPropertyA
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
NULL
,
NULL
,
0
,
&
size
);
NULL
,
NULL
,
0
,
&
size
);
...
@@ -1012,12 +1011,11 @@ static void testDeviceRegistryPropertyW()
...
@@ -1012,12 +1011,11 @@ static void testDeviceRegistryPropertyW()
todo_wine
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_REG_PROPERTY
,
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_REG_PROPERTY
,
"Expected ERROR_INVALID_REG_PROPERTY, got %08x
\n
"
,
GetLastError
());
"Expected ERROR_INVALID_REG_PROPERTY, got %08x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
/* GetLastError() returns nonsense in win2k3 */
ret
=
pSetupDiSetDeviceRegistryPropertyW
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
ret
=
pSetupDiSetDeviceRegistryPropertyW
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
NULL
,
0
);
NULL
,
0
);
todo_wine
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
ok
(
!
ret
,
"Expected failure, got %d
\n
"
,
ret
);
"Expected ERROR_INVALID_DATA, got %08x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
pSetupDiSetDeviceRegistryPropertyW
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
ret
=
pSetupDiSetDeviceRegistryPropertyW
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
(
PBYTE
)
friendlyName
,
buflen
);
(
PBYTE
)
friendlyName
,
buflen
);
...
@@ -1035,11 +1033,10 @@ static void testDeviceRegistryPropertyW()
...
@@ -1035,11 +1033,10 @@ static void testDeviceRegistryPropertyW()
todo_wine
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_REG_PROPERTY
,
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_REG_PROPERTY
,
"Expected ERROR_INVALID_REG_PROPERTY, got %08x
\n
"
,
GetLastError
());
"Expected ERROR_INVALID_REG_PROPERTY, got %08x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
/* GetLastError() returns nonsense in win2k3 */
ret
=
pSetupDiGetDeviceRegistryPropertyW
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
ret
=
pSetupDiGetDeviceRegistryPropertyW
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
NULL
,
NULL
,
buflen
,
NULL
);
NULL
,
NULL
,
buflen
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_DATA
,
ok
(
!
ret
,
"Expected failure, got %d
\n
"
,
ret
);
"Expected ERROR_INVALID_DATA, got %08x
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
pSetupDiGetDeviceRegistryPropertyW
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
ret
=
pSetupDiGetDeviceRegistryPropertyW
(
set
,
&
devInfo
,
SPDRP_FRIENDLYNAME
,
NULL
,
NULL
,
0
,
&
size
);
NULL
,
NULL
,
0
,
&
size
);
...
...
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