urlmon: Fixed Valgrind warnings.

This commit is contained in:
Jacek Caban 2011-02-12 18:58:09 +01:00 committed by Alexandre Julliard
parent 99d9e0f6b2
commit 9896d41ced
1 changed files with 5 additions and 1 deletions

View File

@ -792,6 +792,10 @@ static void test_InternetGetSecurityUrl(void)
CHECK_CALLED(ParseUrl_SECURITY_URL_input2); CHECK_CALLED(ParseUrl_SECURITY_URL_input2);
CHECK_CALLED(ParseUrl_SECURITY_URL_expected); CHECK_CALLED(ParseUrl_SECURITY_URL_expected);
CHECK_CALLED(ParseUrl_SECURITY_DOMAIN_expected); CHECK_CALLED(ParseUrl_SECURITY_DOMAIN_expected);
ok(!lstrcmpW(security_expectedW, sec), "Expected %s but got %s\n",
wine_dbgstr_w(security_expectedW), wine_dbgstr_w(sec));
CoTaskMemFree(sec);
} }
static HRESULT WINAPI InternetProtocolInfo_QueryInterface(IInternetProtocolInfo *iface, static HRESULT WINAPI InternetProtocolInfo_QueryInterface(IInternetProtocolInfo *iface,
@ -872,7 +876,7 @@ static HRESULT WINAPI InternetProtocolInfo_ParseUrl(IInternetProtocolInfo *iface
*pcchResult = lstrlenW(ret)+1; *pcchResult = lstrlenW(ret)+1;
if(*pcchResult > cchResult) if(*pcchResult > cchResult)
return S_FALSE; return S_FALSE;
memcpy(pwzResult, ret, (*pcchResult+1)*sizeof(WCHAR)); memcpy(pwzResult, ret, (*pcchResult)*sizeof(WCHAR));
return S_OK; return S_OK;
} }