windowscodecs: Treat missing GUID list keys as empty.

This commit is contained in:
Vincent Povirk 2014-11-06 16:07:17 -06:00 committed by Alexandre Julliard
parent 4c0ceacee0
commit e53e798aa7
1 changed files with 6 additions and 1 deletions

View File

@ -151,7 +151,12 @@ static HRESULT ComponentInfo_GetGuidList(HKEY classkey, LPCWSTR subkeyname,
return E_INVALIDARG;
ret = RegOpenKeyExW(classkey, subkeyname, 0, KEY_READ, &subkey);
if (ret != ERROR_SUCCESS) return HRESULT_FROM_WIN32(ret);
if (ret == ERROR_FILE_NOT_FOUND)
{
*actual_size = 0;
return S_OK;
}
else if (ret != ERROR_SUCCESS) return HRESULT_FROM_WIN32(ret);
if (buffer)
{