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:
parent
ece93249cb
commit
03e17bbbed
1 changed files with 3 additions and 2 deletions
|
@ -35,7 +35,7 @@ const char *NSIS_VERSION="v2.0b0";
|
|||
#include "exedata.h"
|
||||
|
||||
|
||||
int g_noconfig;
|
||||
int g_noconfig=0;
|
||||
int g_display_errors=1;
|
||||
FILE *g_output=stdout;
|
||||
|
||||
|
@ -241,7 +241,8 @@ int main(int argc, char **argv)
|
|||
{
|
||||
g_noconfig=1;
|
||||
char exepath[1024];
|
||||
strncpy(exepath,argv[0],1023);
|
||||
GetModuleFileName(NULL,exepath,sizeof(exepath)-1);
|
||||
//strncpy(exepath,argv[0],1023);
|
||||
exepath[1023]=0;
|
||||
char *p=exepath;
|
||||
while (*p) p++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue