[1/5] windowscodecs: Treat missing GUID list keys as empty.
Vincent Povirk
madewokherd at gmail.com
Wed Nov 12 16:06:42 CST 2014
-------------- next part --------------
From e9993ead9c995f22b24fb1702cbd54b4bf46108e Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Thu, 6 Nov 2014 16:07:17 -0600
Subject: [PATCH 1/7] windowscodecs: Treat missing GUID list keys as empty.
---
dlls/windowscodecs/info.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dlls/windowscodecs/info.c b/dlls/windowscodecs/info.c
index 5f42994..d42d726 100644
--- a/dlls/windowscodecs/info.c
+++ b/dlls/windowscodecs/info.c
@@ -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)
{
--
2.1.0
More information about the wine-patches
mailing list