mshtml: Free buffer for empty strings too (PVS-Studio).

This commit is contained in:
Nikolay Sivov 2014-08-16 13:53:13 +04:00 committed by Alexandre Julliard
parent 44677f2f78
commit 2ee84d5ae2
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
(void**)&uihandler2); (void**)&uihandler2);
if(SUCCEEDED(hres)) { if(SUCCEEDED(hres)) {
hres = IDocHostUIHandler2_GetOverrideKeyPath(uihandler2, &override_key_path, 0); hres = IDocHostUIHandler2_GetOverrideKeyPath(uihandler2, &override_key_path, 0);
if(hres == S_OK && override_key_path && override_key_path[0]) { if(hres == S_OK && override_key_path) {
if(override_key_path[0]) { if(override_key_path[0]) {
/*FIXME: use override_key_path */ /*FIXME: use override_key_path */
FIXME("override_key_path = %s\n", debugstr_w(override_key_path)); FIXME("override_key_path = %s\n", debugstr_w(override_key_path));