urlmon: fix type of an empty string to avoid warning

Jan Zerebecki jan.wine at zerebecki.de
Wed Jan 24 12:38:32 CST 2007


Note that the problem is not with the occurrence of empty_str
that is changed in this patch but the one before.

If this patch is rejected from inclusion, please tell me why, as
I would have to ask anyway.

From: Jan Zerebecki <jan.wine at zerebecki.de>
Changelog:
urlmon: fix type of an empty string to avoid warning
---

 dlls/urlmon/tests/protocol.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/urlmon/tests/protocol.c b/dlls/urlmon/tests/protocol.c
index 81c3757..5a40355 100644
--- a/dlls/urlmon/tests/protocol.c
+++ b/dlls/urlmon/tests/protocol.c
@@ -564,7 +564,7 @@ static HRESULT WINAPI Protocol_Start(IIn
     HRESULT hres;
 
     static const WCHAR wszTextHtml[] = {'t','e','x','t','/','h','t','m','l',0};
-    static const WCHAR empty_str = {0};
+    static const WCHAR empty_str[] = {0};
 
     CHECK_EXPECT(Start);
 
@@ -592,7 +592,7 @@ static HRESULT WINAPI Protocol_Start(IIn
 
     SET_EXPECT(ReportProgress_CACHEFILENAMEAVAILABLE);
     hres = IInternetProtocolSink_ReportProgress(pOIProtSink,
-            BINDSTATUS_CACHEFILENAMEAVAILABLE, expect_wsz = &empty_str);
+            BINDSTATUS_CACHEFILENAMEAVAILABLE, expect_wsz = empty_str);
     ok(hres == S_OK, "ReportProgress(BINDSTATUS_CACHEFILENAMEAVAILABLE) failed: %08x\n", hres);
     CHECK_CALLED(ReportProgress_CACHEFILENAMEAVAILABLE);
 



More information about the wine-patches mailing list