Commit 24e4acf7 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

urlmon: Write-strings warnings fix.

parent 0924f969
...@@ -572,9 +572,14 @@ static struct regsvr_interface const interface_list[] = { ...@@ -572,9 +572,14 @@ static struct regsvr_interface const interface_list[] = {
* register_inf * register_inf
*/ */
#define INF_SET_CLSID(clsid) \ #define INF_SET_CLSID(clsid) \
pse[i].pszName = "CLSID_" #clsid; \ do \
clsids[i++] = &CLSID_ ## clsid; { \
static CHAR name[] = "CLSID_" #clsid; \
\
pse[i].pszName = name; \
clsids[i++] = &CLSID_ ## clsid; \
} while (0)
static HRESULT register_inf(BOOL doregister) static HRESULT register_inf(BOOL doregister)
{ {
...@@ -587,7 +592,7 @@ static HRESULT register_inf(BOOL doregister) ...@@ -587,7 +592,7 @@ static HRESULT register_inf(BOOL doregister)
int i = 0; int i = 0;
static const WCHAR wszAdvpack[] = {'a','d','v','p','a','c','k','.','d','l','l',0}; static const WCHAR wszAdvpack[] = {'a','d','v','p','a','c','k','.','d','l','l',0};
INF_SET_CLSID(CdlProtocol); INF_SET_CLSID(CdlProtocol);
INF_SET_CLSID(FileProtocol); INF_SET_CLSID(FileProtocol);
INF_SET_CLSID(FtpProtocol); INF_SET_CLSID(FtpProtocol);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment