Module: wine Branch: master Commit: a46790b32d2c271464f0aeea0fd61889a6b07ad2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a46790b32d2c271464f0aeea0f...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Mon Nov 21 09:34:53 2011 +0100
shell32: Avoid harcoding array lengths.
---
dlls/shell32/shellole.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/shell32/shellole.c b/dlls/shell32/shellole.c index 2fac864..49491a0 100644 --- a/dlls/shell32/shellole.c +++ b/dlls/shell32/shellole.c @@ -112,10 +112,10 @@ HRESULT WINAPI SHCoCreateInstance( IID iid; const CLSID * myclsid = clsid; 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]; - const WCHAR sInProcServer32[16] ={'\','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 sInProcServer32[] = {'\','I','n','p','r','o','c','S','e','r','v','e','r','3','2','\0'}; + static const WCHAR sLoadWithoutCOM[] = {'L','o','a','d','W','i','t','h','o','u','t','C','O','M','\0'}; WCHAR sDllPath[MAX_PATH]; HKEY hKey = 0; DWORD dwSize;