WriteIniStr flushing enabled

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1613 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-11-07 20:12:01 +00:00
parent fd99a585a2
commit c0c0191dbc

View file

@ -1109,24 +1109,26 @@ static int NSISCALL ExecuteEntry(entry *entry_)
#ifdef NSIS_SUPPORT_INIFILES #ifdef NSIS_SUPPORT_INIFILES
case EW_WRITEINI: case EW_WRITEINI:
{ {
char *sec=0, *ent=0; char *sec=0, *key=0, *str=0;
char *buf0=process_string_fromparm_tobuf(0x00);
char *buf3;
#ifdef NSIS_CONFIG_LOG #ifdef NSIS_CONFIG_LOG
mystrcpy(buf1,"<RM>"); mystrcpy(buf1,"<RM>");
mystrcpy(buf2,buf1); mystrcpy(buf2,buf1);
#endif #endif
if (parm0)
{
sec=process_string_fromparm_tobuf(0x00);
}
if (parm1) if (parm1)
{ {
sec=process_string_fromparm_tobuf(0x11); sec=process_string_fromparm_tobuf(0x11);
} }
if (parm2) if (parm2)
{ {
ent=process_string_fromparm_tobuf(0x22); str=process_string_fromparm_tobuf(0x22);
} }
buf3=process_string_fromparm_tobuf(0x33); buf3=process_string_fromparm_tobuf(0x33);
log_printf5("WriteINIStr: wrote [%s] %s=%s in %s",buf0,buf1,buf2,buf3); log_printf5("WriteINIStr: wrote [%s] %s=%s in %s",buf0,buf1,buf2,buf3);
if (!WritePrivateProfileString(buf0,sec,ent,buf3)) exec_errorflag++; if (!WritePrivateProfileString(sec,key,str,buf3)) exec_errorflag++;
} }
return 0; return 0;
case EW_READINISTR: case EW_READINISTR: