Commit d34ec8b8 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

setupapi: Add test showing value of path.

parent a63c9356
...@@ -466,6 +466,8 @@ static void testGetDeviceInterfaceDetail(void) ...@@ -466,6 +466,8 @@ static void testGetDeviceInterfaceDetail(void)
"Expected ERROR_INSUFFICIENT_BUFFER, got %d\n", GetLastError()); "Expected ERROR_INSUFFICIENT_BUFFER, got %d\n", GetLastError());
if (!ret && GetLastError() == ERROR_INSUFFICIENT_BUFFER) if (!ret && GetLastError() == ERROR_INSUFFICIENT_BUFFER)
{ {
static const char path[] =
"\\\\?\\root#legacy_bogus#0000#{6a55b5a4-3f65-11db-b704-0011955c2bdb}";
LPBYTE buf = HeapAlloc(GetProcessHeap(), 0, size); LPBYTE buf = HeapAlloc(GetProcessHeap(), 0, size);
SP_DEVICE_INTERFACE_DETAIL_DATA_A *detail = SP_DEVICE_INTERFACE_DETAIL_DATA_A *detail =
(SP_DEVICE_INTERFACE_DETAIL_DATA_A *)buf; (SP_DEVICE_INTERFACE_DETAIL_DATA_A *)buf;
...@@ -488,6 +490,9 @@ static void testGetDeviceInterfaceDetail(void) ...@@ -488,6 +490,9 @@ static void testGetDeviceInterfaceDetail(void)
size, &size, NULL); size, &size, NULL);
ok(ret, "SetupDiGetDeviceInterfaceDetailA failed: %d\n", ok(ret, "SetupDiGetDeviceInterfaceDetailA failed: %d\n",
GetLastError()); GetLastError());
todo_wine
ok(!lstrcmpiA(path, detail->DevicePath), "Unexpected path %s\n",
detail->DevicePath);
HeapFree(GetProcessHeap(), 0, buf); HeapFree(GetProcessHeap(), 0, buf);
} }
pSetupDiDestroyDeviceInfoList(set); pSetupDiDestroyDeviceInfoList(set);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment