=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: oleaut32: Avoid harcoding array lengths.

Alexandre Julliard julliard at winehq.org
Mon Nov 21 11:10:07 CST 2011


Module: wine
Branch: master
Commit: a7cb73d39e742a638a096efafafeb028046c873f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a7cb73d39e742a638a096efafafeb028046c873f

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Mon Nov 21 09:21:06 2011 +0100

oleaut32: Avoid harcoding array lengths.

---

 dlls/oleaut32/oleaut.c     |    2 +-
 dlls/oleaut32/usrmarshal.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/oleaut32/oleaut.c b/dlls/oleaut32/oleaut.c
index 95c4b6a..0586e15 100644
--- a/dlls/oleaut32/oleaut.c
+++ b/dlls/oleaut32/oleaut.c
@@ -447,7 +447,7 @@ void WINAPI SetOaNoCache(void)
   BSTR_bCache = FALSE;
 }
 
-static const WCHAR	_delimiter[2] = {'!',0}; /* default delimiter apparently */
+static const WCHAR	_delimiter[] = {'!',0}; /* default delimiter apparently */
 static const WCHAR	*pdelimiter = &_delimiter[0];
 
 /***********************************************************************
diff --git a/dlls/oleaut32/usrmarshal.c b/dlls/oleaut32/usrmarshal.c
index c67f384..2414a9e 100644
--- a/dlls/oleaut32/usrmarshal.c
+++ b/dlls/oleaut32/usrmarshal.c
@@ -2191,7 +2191,7 @@ HRESULT __RPC_STUB IPropertyBag_Read_Stub(
     DWORD varType,
     IUnknown *pUnkObj)
 {
-  static const WCHAR emptyWstr[1] = {0};
+  static const WCHAR emptyWstr[] = {0};
   IDispatch *disp;
   HRESULT hr;
   TRACE("(%p, %s, %p, %p, %x, %p)\n", This, debugstr_w(pszPropName), pVar,




More information about the wine-cvs mailing list