From 8b278be8031b9f82133819bdd6f1447a2eeed0f6 Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 25 Jan 2007 22:37:46 +0000 Subject: [PATCH] use a different temporary variable now that state_command_line is already in use git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4905 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/exehead/Main.c b/Source/exehead/Main.c index 96a7588e..d677419c 100644 --- a/Source/exehead/Main.c +++ b/Source/exehead/Main.c @@ -48,8 +48,8 @@ char *ValidateTempDir() return NULL; addtrailingslash(state_temp_dir); CreateDirectory(state_temp_dir, NULL); - // state_command_line is used as a temp var here - return my_GetTempFileName(state_command_line, state_temp_dir); + // state_language is used as a temp var here + return my_GetTempFileName(state_language, state_temp_dir); } int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam, int nCmdShow) @@ -163,7 +163,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam, goto end; } } - DeleteFile(state_command_line); + DeleteFile(state_language); m_Err = loadHeaders(cl_flags); if (m_Err) goto end;