setupapi: Implement SetupDiCreateDeviceInterfaceA on top of SetupDiCreateInterfaceW.
This commit is contained in:
parent
8069619b90
commit
aa2b23cab5
|
@ -1767,12 +1767,26 @@ BOOL WINAPI SetupDiCreateDeviceInterfaceA(
|
|||
DWORD CreationFlags,
|
||||
PSP_DEVICE_INTERFACE_DATA DeviceInterfaceData)
|
||||
{
|
||||
BOOL ret;
|
||||
LPWSTR ReferenceStringW = NULL;
|
||||
|
||||
TRACE("%p %p %s %s %08x %p\n", DeviceInfoSet, DeviceInfoData,
|
||||
debugstr_guid(InterfaceClassGuid), debugstr_a(ReferenceString),
|
||||
CreationFlags, DeviceInterfaceData);
|
||||
|
||||
FIXME("stub\n");
|
||||
return FALSE;
|
||||
if (ReferenceString)
|
||||
{
|
||||
ReferenceStringW = MultiByteToUnicode(ReferenceString, CP_ACP);
|
||||
if (ReferenceStringW == NULL) return FALSE;
|
||||
}
|
||||
|
||||
ret = SetupDiCreateDeviceInterfaceW(DeviceInfoSet, DeviceInfoData,
|
||||
InterfaceClassGuid, ReferenceStringW, CreationFlags,
|
||||
DeviceInterfaceData);
|
||||
|
||||
MyFree(ReferenceStringW);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in New Issue