[Wine-patches] [eter-2.1] ole32: OleRegGetMiscStatus should not fail if the 'MiscStatus' key is missing. (eterbug #11776)
Dmitry Timoshkov
dtimoshkov на etersoft.ru
Вт Июл 11 09:48:32 MSK 2017
---
dlls/ole32/ole2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c
index a1a4b9ac99..1c3f67894c 100644
--- a/dlls/ole32/ole2.c
+++ b/dlls/ole32/ole2.c
@@ -910,7 +910,8 @@ HRESULT WINAPI OleRegGetMiscStatus(
if (result != ERROR_SUCCESS)
{
RegCloseKey(clsidKey);
- return REGDB_E_READREGDB;
+ /* missing key is not a failure */
+ return result == ERROR_FILE_NOT_FOUND ? S_OK : REGDB_E_READREGDB;
}
/*
--
2.13.2
Подробная информация о списке рассылки Wine-patches