mapi32/tests: Write-strings warning fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Thu Jul 27 16:47:09 CDT 2006
Changelog:
mapi32/tests: Write-strings warning fix.
diff -urN a/dlls/mapi32/tests/prop.c b/dlls/mapi32/tests/prop.c
--- a/dlls/mapi32/tests/prop.c 2006-06-14 12:54:38.000000000 +0100
+++ b/dlls/mapi32/tests/prop.c 2006-07-27 22:30:21.000000000 +0100
@@ -897,7 +897,7 @@
static void test_FBadRglpszA(void)
{
LPSTR lpStrs[4];
- char *szString = "A String";
+ static CHAR szString[] = "A String";
BOOL bRet;
pFBadRglpszA = (void*)GetProcAddress(hMapi32, "FBadRglpszA at 8");
@@ -922,7 +922,7 @@
static void test_FBadRglpszW(void)
{
LPWSTR lpStrs[4];
- WCHAR szString[] = { 'A',' ','S','t','r','i','n','g','\0' };
+ static WCHAR szString[] = { 'A',' ','S','t','r','i','n','g','\0' };
BOOL bRet;
pFBadRglpszW = (void*)GetProcAddress(hMapi32, "FBadRglpszW at 8");
@@ -1005,7 +1005,7 @@
static void test_FBadProp(void)
{
- WCHAR szEmpty[] = { '\0' };
+ static WCHAR szEmpty[] = { '\0' };
GUID iid;
ULONG pt, res;
SPropValue pv;
More information about the wine-patches
mailing list