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:
parent
a725cdf3c4
commit
a798cabcff
4 changed files with 19 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue