Safer "bug" report 750338

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2618 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-06-07 10:59:11 +00:00
parent a725cdf3c4
commit a798cabcff
4 changed files with 19 additions and 6 deletions

View file

@ -15,7 +15,20 @@
#include <cderr.h>
#include "resource.h"
#define popstring dontuseme
#include "../exdll/exdll.h"
#undef popstring
static int popstring(char *str)
{
stack_t *th;
if (!g_stacktop || !*g_stacktop) return 1;
th=(*g_stacktop);
if (str) lstrcpy(str,th->text);
*g_stacktop = th->next;
GlobalFree((HGLOBAL)th);
return 0;
}
#define strcpy(x,y) lstrcpy(x,y)
#define strncpy(x,y,z) lstrcpyn(x,y,z)
@ -32,7 +45,6 @@ char *STRDUP(const char *c)
return lstrcpy(t,c);
}
#define FIELD_LABEL (1)
#define FIELD_ICON (2)
#define FIELD_BITMAP (3)