mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Add a new COMPAT option for environments lacking SecureZeroMemory(),
rather than explicitly checking for Winelib. It seems that w32api is lacking it as well. [originally from svn r9669]
This commit is contained in:
@ -68,7 +68,7 @@ Filename *filename_deserialise(void *vdata, int maxsize, int *used)
|
||||
return filename_from_str(data);
|
||||
}
|
||||
|
||||
#ifndef __WINE__ /* No SecureZeroMemory in Winelib 1.4 */
|
||||
#ifndef NO_SECUREZEROMEMORY
|
||||
/*
|
||||
* Windows implementation of smemclr (see misc.c) using SecureZeroMemory.
|
||||
*/
|
||||
|
@ -75,7 +75,7 @@ struct FontSpec *fontspec_new(const char *name,
|
||||
#define BOXRESULT (DLGWINDOWEXTRA + sizeof(LONG_PTR))
|
||||
#define DF_END 0x0001
|
||||
|
||||
#ifndef __WINE__ /* No SecureZeroMemory in Winelib 1.4 */
|
||||
#ifndef NO_SECUREZEROMEMORY
|
||||
#define PLATFORM_HAS_SMEMCLR /* inhibit cross-platform one in misc.c */
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user