setupapi: Correct creating the class key.
This commit is contained in:
parent
6851e109ed
commit
01bf19dc0b
|
@ -3056,6 +3056,7 @@ BOOL WINAPI SetupDiInstallClassA(
|
||||||
|
|
||||||
static HKEY CreateClassKey(HINF hInf)
|
static HKEY CreateClassKey(HINF hInf)
|
||||||
{
|
{
|
||||||
|
static const WCHAR slash[] = { '\\',0 };
|
||||||
WCHAR FullBuffer[MAX_PATH];
|
WCHAR FullBuffer[MAX_PATH];
|
||||||
WCHAR Buffer[MAX_PATH];
|
WCHAR Buffer[MAX_PATH];
|
||||||
DWORD RequiredSize;
|
DWORD RequiredSize;
|
||||||
|
@ -3073,6 +3074,7 @@ static HKEY CreateClassKey(HINF hInf)
|
||||||
}
|
}
|
||||||
|
|
||||||
lstrcpyW(FullBuffer, ControlClass);
|
lstrcpyW(FullBuffer, ControlClass);
|
||||||
|
lstrcatW(FullBuffer, slash);
|
||||||
lstrcatW(FullBuffer, Buffer);
|
lstrcatW(FullBuffer, Buffer);
|
||||||
|
|
||||||
if (RegOpenKeyExW(HKEY_LOCAL_MACHINE,
|
if (RegOpenKeyExW(HKEY_LOCAL_MACHINE,
|
||||||
|
|
Loading…
Reference in New Issue