urlmon: Write-strings warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Tue Jul 11 16:43:45 CDT 2006
Changelog:
urlmon: Write-strings warnings fix.
diff -urN a/dlls/urlmon/regsvr.c b/dlls/urlmon/regsvr.c
--- a/dlls/urlmon/regsvr.c 2006-06-30 20:26:23.000000000 +0100
+++ b/dlls/urlmon/regsvr.c 2006-07-11 22:19:12.000000000 +0100
@@ -572,9 +572,14 @@
* register_inf
*/
-#define INF_SET_CLSID(clsid) \
- pse[i].pszName = "CLSID_" #clsid; \
- clsids[i++] = &CLSID_ ## clsid;
+#define INF_SET_CLSID(clsid) \
+ do \
+ { \
+ static CHAR name[] = "CLSID_" #clsid; \
+ \
+ pse[i].pszName = name; \
+ clsids[i++] = &CLSID_ ## clsid; \
+ } while (0)
static HRESULT register_inf(BOOL doregister)
{
@@ -587,7 +592,7 @@
int i = 0;
static const WCHAR wszAdvpack[] = {'a','d','v','p','a','c','k','.','d','l','l',0};
-
+
INF_SET_CLSID(CdlProtocol);
INF_SET_CLSID(FileProtocol);
INF_SET_CLSID(FtpProtocol);
More information about the wine-patches
mailing list