shell32: Avoid harcoding array lengths.

This commit is contained in:
Frédéric Delanoy 2011-11-21 09:34:53 +01:00 committed by Alexandre Julliard
parent a7cb73d39e
commit a46790b32d
1 changed files with 3 additions and 3 deletions

View File

@ -112,10 +112,10 @@ HRESULT WINAPI SHCoCreateInstance(
IID iid; IID iid;
const CLSID * myclsid = clsid; const CLSID * myclsid = clsid;
WCHAR sKeyName[MAX_PATH]; WCHAR sKeyName[MAX_PATH];
const WCHAR sCLSID[7] = {'C','L','S','I','D','\\','\0'}; static const WCHAR sCLSID[] = {'C','L','S','I','D','\\','\0'};
WCHAR sClassID[60]; WCHAR sClassID[60];
const WCHAR sInProcServer32[16] ={'\\','I','n','p','r','o','c','S','e','r','v','e','r','3','2','\0'}; static const WCHAR sInProcServer32[] = {'\\','I','n','p','r','o','c','S','e','r','v','e','r','3','2','\0'};
const WCHAR sLoadWithoutCOM[15] ={'L','o','a','d','W','i','t','h','o','u','t','C','O','M','\0'}; static const WCHAR sLoadWithoutCOM[] = {'L','o','a','d','W','i','t','h','o','u','t','C','O','M','\0'};
WCHAR sDllPath[MAX_PATH]; WCHAR sDllPath[MAX_PATH];
HKEY hKey = 0; HKEY hKey = 0;
DWORD dwSize; DWORD dwSize;