[PATCH] crypt32: Print CryptUnprotectMemory FIXME only once.

André Hentschel nerv at dawncrow.de
Fri Jul 13 12:50:22 CDT 2018


From: Christian Costa <titan.costa at gmail.com>

Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
 dlls/crypt32/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/crypt32/main.c b/dlls/crypt32/main.c
index 9ff7592..c03c092 100644
--- a/dlls/crypt32/main.c
+++ b/dlls/crypt32/main.c
@@ -258,6 +258,7 @@ BOOL WINAPI CryptProtectMemory(void *data, DWORD len, DWORD flags)
 
 BOOL WINAPI CryptUnprotectMemory(void *data, DWORD len, DWORD flags)
 {
-    FIXME("(%p %u %08x): stub\n", data, len, flags);
+    static int fixme_once;
+    if (!fixme_once++) FIXME("(%p %u %08x): stub\n", data, len, flags);
     return TRUE;
 }
-- 
2.7.4




More information about the wine-devel mailing list