Paul Vriens : setupapi/tests: Prevent crash on NT4.
Alexandre Julliard
julliard at winehq.org
Mon Jun 23 16:03:43 CDT 2008
Module: wine
Branch: master
Commit: f544b039cf56a634d5f652e4ca7941823da91a8e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f544b039cf56a634d5f652e4ca7941823da91a8e
Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date: Mon Jun 23 16:16:43 2008 +0200
setupapi/tests: Prevent crash on NT4.
---
dlls/setupapi/tests/devinst.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c
index db323af..64035d7 100644
--- a/dlls/setupapi/tests/devinst.c
+++ b/dlls/setupapi/tests/devinst.c
@@ -992,6 +992,13 @@ static void testRegisterAndGetDetail(void)
'1','1','d','b','-','b','7','0','4','-',
'0','0','1','1','9','5','5','c','2','b','d','b','}',0};
+ if (!pSetupDiCreateDeviceInterfaceA || !pSetupDiEnumDeviceInterfaces ||
+ !pSetupDiGetDeviceInterfaceDetailA)
+ {
+ skip("Needed functions are not available\n");
+ return;
+ }
+
SetLastError(0xdeadbeef);
set = pSetupDiGetClassDevsA(&guid, NULL, 0, DIGCF_ALLCLASSES);
ok(set != INVALID_HANDLE_VALUE, "SetupDiGetClassDevsA failed: %08x\n",
More information about the wine-cvs
mailing list