Don't try to use SecureZeroMemory under Winelib, since it isn't available
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Thu, 13 Sep 2012 22:34:18 +0000 (22:34 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Thu, 13 Sep 2012 22:34:18 +0000 (22:34 +0000)
there (yet).

git-svn-id: svn://svn.tartarus.org/sgt/putty@9663 cda61777-01e9-0310-a592-d414129be87e

windows/winmisc.c

index 2166f45..e3321b5 100644 (file)
@@ -68,6 +68,7 @@ Filename *filename_deserialise(void *vdata, int maxsize, int *used)
     return filename_from_str(data);
 }
 
+#ifndef __WINE__ /* No SecureZeroMemory in Winelib 1.4 */
 /*
  * Windows implementation of smemclr (see misc.c) using SecureZeroMemory.
  */
@@ -75,6 +76,7 @@ void smemclr(void *b, size_t n) {
     if (b && n > 0)
         SecureZeroMemory(b, n);
 }
+#endif
 
 char *get_username(void)
 {