setupapi/tests: Prevent crash on NT4.

This commit is contained in:
Paul Vriens 2008-06-23 16:16:43 +02:00 committed by Alexandre Julliard
parent 7e7574d2a8
commit f544b039cf

View File

@ -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",