nsisconf.nsh works again

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1795 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-11-20 17:41:00 +00:00
parent ece93249cb
commit 03e17bbbed

View file

@ -35,7 +35,7 @@ const char *NSIS_VERSION="v2.0b0";
#include "exedata.h" #include "exedata.h"
int g_noconfig; int g_noconfig=0;
int g_display_errors=1; int g_display_errors=1;
FILE *g_output=stdout; FILE *g_output=stdout;
@ -241,7 +241,8 @@ int main(int argc, char **argv)
{ {
g_noconfig=1; g_noconfig=1;
char exepath[1024]; char exepath[1024];
strncpy(exepath,argv[0],1023); GetModuleFileName(NULL,exepath,sizeof(exepath)-1);
//strncpy(exepath,argv[0],1023);
exepath[1023]=0; exepath[1023]=0;
char *p=exepath; char *p=exepath;
while (*p) p++; while (*p) p++;