Skip to content

Commit 5421dbf

Browse files
committed
reverted dwCurrAddress init to 0x0
1 parent 975de2f commit 5421dbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ini.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,8 @@ int switchtec_convert_ini2bin(FILE *szINIFileName, char *pclog ,BYTE *m_pBinConf
439439
unsigned int nTemp = 0;
440440
// This fix is required for appending - 0x80(SET_XDATA_ADDRESS) in binary due to the following condition,
441441
// if ((dwCurrAddress < dwPrevAddress) || (wTemp > 0x7D))
442-
// SO, dwCurrAddress, dwPrevAddress need to be initialied to 0Xffffffff
443-
DWORD dwCurrAddress = 0xFFFFFFFF, dwPrevAddress = 0xFFFFFFFF;
442+
// So, dwPrevAddress need to be initialied to 0Xffffffff
443+
DWORD dwCurrAddress = 0, dwPrevAddress = 0xFFFFFFFF;
444444
BYTE byPatchCount = 0;
445445
BOOL bValidDataOffset = FALSE;
446446
WORD wDataLengthOffset = 0;

0 commit comments

Comments
 (0)