Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/ini.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,10 @@ int switchtec_convert_ini2bin(FILE *szINIFileName, char *pclog ,BYTE *m_pBinConf
BYTE byPrevXMode = SET_XMODE_NONE;
BYTE byCurrXMode = SET_XMODE_NONE;
unsigned int nTemp = 0;
DWORD dwCurrAddress = 0, dwPrevAddress = 0;
// This fix is required for appending - 0x80(SET_XDATA_ADDRESS) in binary due to the following condition,
// if ((dwCurrAddress < dwPrevAddress) || (wTemp > 0x7D))
// So, dwPrevAddress need to be initialied to 0Xffffffff
DWORD dwCurrAddress = 0, dwPrevAddress = 0xFFFFFFFF;
BYTE byPatchCount = 0;
BOOL bValidDataOffset = FALSE;
WORD wDataLengthOffset = 0;
Expand Down