Hans Leidekker : crypt32: Return success from the CERT_STORE_CTRL_NOTIFY_CHANGE stub.

Alexandre Julliard julliard at winehq.org
Wed Apr 11 16:12:55 CDT 2018


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Apr 11 12:05:46 2018 +0200

crypt32: Return success from the CERT_STORE_CTRL_NOTIFY_CHANGE stub.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/crypt32/regstore.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dlls/crypt32/regstore.c b/dlls/crypt32/regstore.c
index 5a39a26..9b81e01 100644
--- a/dlls/crypt32/regstore.c
+++ b/dlls/crypt32/regstore.c
@@ -453,7 +453,7 @@ static BOOL WINAPI CRYPT_RegControl(HCERTSTORE hCertStore, DWORD dwFlags,
  DWORD dwCtrlType, void const *pvCtrlPara)
 {
     WINE_REGSTOREINFO *store = hCertStore;
-    BOOL ret;
+    BOOL ret = TRUE;
 
     TRACE("(%p, %08x, %d, %p)\n", hCertStore, dwFlags, dwCtrlType,
      pvCtrlPara);
@@ -469,7 +469,6 @@ static BOOL WINAPI CRYPT_RegControl(HCERTSTORE hCertStore, DWORD dwFlags,
         CRYPT_RegReadFromReg(store->key, memStore);
         I_CertUpdateStore(store->memStore, memStore, 0, 0);
         CertCloseStore(memStore, 0);
-        ret = TRUE;
         break;
     }
     case CERT_STORE_CTRL_COMMIT:
@@ -478,10 +477,12 @@ static BOOL WINAPI CRYPT_RegControl(HCERTSTORE hCertStore, DWORD dwFlags,
         break;
     case CERT_STORE_CTRL_AUTO_RESYNC:
         FIXME("CERT_STORE_CTRL_AUTO_RESYNC: stub\n");
-        ret = TRUE;
+        break;
+    case CERT_STORE_CTRL_NOTIFY_CHANGE:
+        FIXME("CERT_STORE_CTRL_NOTIFY_CHANGE: stub\n");
         break;
     default:
-        FIXME("%d: stub\n", dwCtrlType);
+        FIXME("%u: stub\n", dwCtrlType);
         ret = FALSE;
     }
     return ret;




More information about the wine-cvs mailing list