]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix remaining warnings in ie backend.
authorSteve Lamerton <steve.lamerton@gmail.com>
Mon, 1 Aug 2011 13:20:46 +0000 (13:20 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Mon, 1 Aug 2011 13:20:46 +0000 (13:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/webview_ie.h
src/msw/webview_ie.cpp

index f7d560cc43aeb88d6e5f70da5480d9a974d47918..67f33050498bb4ab922d881f96eec2d7774614bb 100644 (file)
@@ -210,8 +210,9 @@ public:
                                          DWORD dwCombineFlags, 
                                          LPWSTR pwzResult, DWORD cchResult,
                                          DWORD *pcchResult, DWORD dwReserved);
-    HRESULT STDMETHODCALLTYPE CompareUrl(LPCWSTR pwzUrl1, LPCWSTR pwzUrl2,
-                                         DWORD dwCompareFlags)
+    HRESULT STDMETHODCALLTYPE CompareUrl(LPCWSTR WXUNUSED(pwzUrl1), 
+                                         LPCWSTR WXUNUSED(pwzUrl2),
+                                         DWORD WXUNUSED(dwCompareFlags))
                                          { return INET_E_DEFAULT_ACTION; }
     HRESULT STDMETHODCALLTYPE ParseUrl(LPCWSTR pwzUrl, PARSEACTION ParseAction,
                                        DWORD dwParseFlags, LPWSTR pwzResult,
index f8e01432e6e06d4dd7e5c0387eb53bfaf699c27c..9f0c1168b406385aca22cc79d204b6fe30287aaa 100644 (file)
@@ -1077,12 +1077,14 @@ HRESULT VirtualProtocol::Read(void *pv, ULONG cb, ULONG *pcbRead)
 }
 
 HRESULT VirtualProtocol::CombineUrl(LPCWSTR pwzBaseUrl, LPCWSTR pwzRelativeUrl,
-                                    DWORD dwCombineFlags, LPWSTR pwzResult, 
+                                    DWORD WXUNUSED(dwCombineFlags), 
+                                    LPWSTR pwzResult, 
                                     DWORD cchResult, DWORD *pcchResult, 
-                                    DWORD dwReserved)
+                                    DWORD WXUNUSED(dwReserved))
 {
+
     wxString newuri = m_handler->CombineURIs(pwzBaseUrl, pwzRelativeUrl);
-    //Check the buffer we are given can hold the new urll
+    //Check the buffer we are given can hold the new url
     if(wxStrlen(newuri) > cchResult)
         return S_FALSE;
 
@@ -1091,21 +1093,29 @@ HRESULT VirtualProtocol::CombineUrl(LPCWSTR pwzBaseUrl, LPCWSTR pwzRelativeUrl,
     return S_OK;
 }
 
-HRESULT VirtualProtocol::ParseUrl(LPCWSTR pwzUrl, PARSEACTION ParseAction,
-                                  DWORD dwParseFlags, LPWSTR pwzResult,
+HRESULT VirtualProtocol::ParseUrl(LPCWSTR pwzUrl, 
+                                  PARSEACTION WXUNUSED(ParseAction),
+                                  DWORD WXUNUSED(dwParseFlags), 
+                                  LPWSTR pwzResult,
                                   DWORD cchResult, DWORD *pcchResult,
-                                  DWORD dwReserved)
+                                  DWORD WXUNUSED(dwReserved))
 {
-    //return INET_E_DEFAULT_ACTION;
+    //Check the buffer we are given can hold the new url
+    if(wxStrlen(pwzUrl) > cchResult)
+        return S_FALSE;
+
     wxStrcpy(pwzResult, pwzUrl);
     *pcchResult = wxStrlen(pwzResult);
     return S_OK;
 }
     
-HRESULT VirtualProtocol::QueryInfo(LPCWSTR pwzUrl, QUERYOPTION OueryOption, 
-                                   DWORD dwQueryFlags, LPVOID pBuffer,
-                                   DWORD cbBuffer, DWORD *pcbBuf,  
-                                   DWORD dwReserved)
+HRESULT VirtualProtocol::QueryInfo(LPCWSTR WXUNUSED(pwzUrl), 
+                                   QUERYOPTION WXUNUSED(OueryOption), 
+                                   DWORD WXUNUSED(dwQueryFlags), 
+                                   LPVOID WXUNUSED(pBuffer),
+                                   DWORD WXUNUSED(cbBuffer), 
+                                   DWORD* WXUNUSED(pcbBuf),  
+                                   DWORD WXUNUSED(dwReserved))
 {
     return INET_E_DEFAULT_ACTION;
 }