]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
This should be the last SecureZeroMemory fix
authorNick Mathewson <nickm@torproject.org>
Sun, 12 Jul 2015 19:14:43 +0000 (15:14 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 12 Jul 2015 19:14:52 +0000 (15:14 -0400)
src/common/compat.c

index a32a1af1d686ce18c1df27467410769d4ddee9f8..01eccaccdc0bc5f93c8a6a96d74b3ad06d4ac126 100644 (file)
@@ -80,7 +80,8 @@ wint_t _getwch(void);
 #define WEOF (wchar_t)(0xFFFF)
 #endif
 #if defined(HAVE_DECL_SECUREZEROMEMORY) && !HAVE_DECL_SECUREZEROMEMORY
-PVOID SecureZeroMemory(PVOID ptr, SIZE_T cnt);
+#define SecureZeroMemory RtlSecureZeroMemory
+PVOID WINAPI SecureZeroMemory(PVOID ptr, SIZE_T cnt);
 #endif
 #elif defined(HAVE_READPASSPHRASE_H)
 #include <readpassphrase.h>