mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Don't try to use SecureZeroMemory under Winelib, since it isn't available
there (yet). [originally from svn r9663]
This commit is contained in:
parent
e7324f7934
commit
3b27c3e32b
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user