From da1f2ae86e9fd014fd4bffd7c7f3b42f859bd68d Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 31 Jul 2020 21:38:42 +0000 Subject: [PATCH] vc6 build fixes git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7198 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/build.cpp | 2 +- Source/manifest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/build.cpp b/Source/build.cpp index 83c61712..276af303 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -3650,7 +3650,7 @@ bool CEXEBuild::prompt_for_output_path(TCHAR*path, UINT pathcap) const if (Msg == WM_COPYDATA && pCDS->cbData > sizeof(TCHAR) && pCDS->cbData <= io[2] * sizeof(TCHAR)) { _tcscpy((TCHAR*) io[1], (TCHAR*) ((COPYDATASTRUCT*)lParam)->lpData); - return (io[0] = (pCDS->dwData == PROMPT_FILEPATH)); + return (io[0] = (pCDS->dwData == MakensisAPI::PROMPT_FILEPATH)); } return false; } diff --git a/Source/manifest.cpp b/Source/manifest.cpp index bca83eab..832e5642 100644 --- a/Source/manifest.cpp +++ b/Source/manifest.cpp @@ -127,7 +127,7 @@ static bool append(string& xml, const TCHAR*path, const char*prefix = 0, const c bool any = false; int i = isvalidappendpath(path); if (i >= 0) - for (std::size_t j = 0; j < g_appendstrings[i].size(); ++j) + for (size_t j = 0; j < g_appendstrings[i].size(); ++j) { if (!any && prefix) xml += prefix, any = true; xml += g_appendstrings[i][j];