vc6 build fixes

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7198 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2020-07-31 21:38:42 +00:00
parent 09fca677cc
commit da1f2ae86e
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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];