setupapi: Correct creating the class key.

This commit is contained in:
Juan Lang 2007-10-11 13:22:55 -07:00 committed by Alexandre Julliard
parent 6851e109ed
commit 01bf19dc0b
1 changed files with 2 additions and 0 deletions

View File

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