Zebediah Figura : msdmo: DMORegister() returns E_FAIL if unable to access the registry.

Alexandre Julliard julliard at winehq.org
Thu Jun 28 15:55:10 CDT 2018


Module: wine
Branch: master
Commit: 4e49d7ba42caa5d3514cfe5942b54ac80a51fa1a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4e49d7ba42caa5d3514cfe5942b54ac80a51fa1a

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Thu Jun 28 12:03:48 2018 +0200

msdmo: DMORegister() returns E_FAIL if unable to access the registry.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msdmo/dmoreg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msdmo/dmoreg.c b/dlls/msdmo/dmoreg.c
index 2161d40..e4766d7 100644
--- a/dlls/msdmo/dmoreg.c
+++ b/dlls/msdmo/dmoreg.c
@@ -208,7 +208,7 @@ HRESULT WINAPI DMORegister(
     ret = RegCreateKeyExW(HKEY_CLASSES_ROOT, szDMORootKey, 0, NULL,
         REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hrkey, NULL);
     if (ret)
-        return HRESULT_FROM_WIN32(ret);
+        return E_FAIL;
 
     /* Create clsidDMO key under MediaObjects */ 
     ret = RegCreateKeyExW(hrkey, GUIDToString(szguid, clsidDMO), 0, NULL,




More information about the wine-cvs mailing list