=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: shell32: Avoid harcoding array lengths.
Alexandre Julliard
julliard at winehq.org
Mon Nov 21 11:10:07 CST 2011
Module: wine
Branch: master
Commit: a46790b32d2c271464f0aeea0fd61889a6b07ad2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a46790b32d2c271464f0aeea0fd61889a6b07ad2
Author: Frédéric Delanoy <frederic.delanoy at 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;
More information about the wine-cvs
mailing list