[PATCH 2/2] shdocvw: Add comment about the return value for the A version of ParseURLFromOutsideSource.

Christian Costa titan.costa at gmail.com
Wed May 1 15:52:29 CDT 2013


---
 dlls/shdocvw/shdocvw_main.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/shdocvw/shdocvw_main.c b/dlls/shdocvw/shdocvw_main.c
index 7826088..f6fcc0e 100644
--- a/dlls/shdocvw/shdocvw_main.c
+++ b/dlls/shdocvw/shdocvw_main.c
@@ -450,6 +450,7 @@ DWORD WINAPI ParseURLFromOutsideSourceA(LPCSTR url, LPSTR out, LPDWORD plen, LPD
     if (*plen >= needed) {
         if (out != NULL) {
             WideCharToMultiByte(CP_ACP, 0, buffer, -1, out, *plen, NULL, NULL);
+            /* Contrary to W version the returned value is the string size including terminating 0 */
             res = needed;
         }
         needed--;




More information about the wine-patches mailing list