Commit 01bf19dc authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

setupapi: Correct creating the class key.

parent 6851e109
...@@ -3056,6 +3056,7 @@ BOOL WINAPI SetupDiInstallClassA( ...@@ -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) ...@@ -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,
......
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