=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: ole32/tests: Constify some character strings.
Alexandre Julliard
julliard at winehq.org
Fri Dec 27 13:31:10 CST 2013
Module: wine
Branch: master
Commit: 43d05cc59e7281c610dc05c5a11f242bce4aa1d0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=43d05cc59e7281c610dc05c5a11f242bce4aa1d0
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Thu Dec 26 22:49:30 2013 +0100
ole32/tests: Constify some character strings.
---
dlls/ole32/tests/compobj.c | 4 ++--
dlls/ole32/tests/storage32.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ole32/tests/compobj.c b/dlls/ole32/tests/compobj.c
index 8c4d6a8..b615034 100644
--- a/dlls/ole32/tests/compobj.c
+++ b/dlls/ole32/tests/compobj.c
@@ -65,9 +65,9 @@ static const GUID IID_TestPS = { 0x66666666, 0x8888, 0x7777, { 0x66, 0x66, 0x55,
DEFINE_GUID(CLSID_InProcFreeMarshaler, 0x0000033a,0x0000,0x0000,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
-static WCHAR stdfont[] = {'S','t','d','F','o','n','t',0};
+static const WCHAR stdfont[] = {'S','t','d','F','o','n','t',0};
static const WCHAR wszNonExistent[] = {'N','o','n','E','x','i','s','t','e','n','t',0};
-static WCHAR wszCLSID_StdFont[] =
+static const WCHAR wszCLSID_StdFont[] =
{
'{','0','b','e','3','5','2','0','3','-','8','f','9','1','-','1','1','c','e','-',
'9','d','e','3','-','0','0','a','a','0','0','4','b','b','8','5','1','}',0
diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c
index 06d2fa4..b298f8d 100644
--- a/dlls/ole32/tests/storage32.c
+++ b/dlls/ole32/tests/storage32.c
@@ -2174,7 +2174,7 @@ static void test_fmtusertypestg(void)
static const char fileA[] = {'f','m','t','t','e','s','t',0};
static const WCHAR fileW[] = {'f','m','t','t','e','s','t',0};
static WCHAR userTypeW[] = {'S','t','g','U','s','r','T','y','p','e',0};
- static WCHAR strmNameW[] = {1,'C','o','m','p','O','b','j',0};
+ static const WCHAR strmNameW[] = {1,'C','o','m','p','O','b','j',0};
hr = StgCreateDocfile( fileW, STGM_CREATE | STGM_SHARE_EXCLUSIVE | STGM_READWRITE, 0, &stg);
ok(hr == S_OK, "should succeed, res=%x\n", hr);
More information about the wine-cvs
mailing list