mirror of
https://github.com/reactos/reactos.git
synced 2024-06-16 17:41:56 +00:00
[REGEDIT] Fix importing very big *.reg files (HEX values commonly) (#618)
This bug was found when I tried to import *.reg with huge HEX value (about 500 and much more lines of hex text).
This commit is contained in:
parent
6f82659da6
commit
b9415740a1
|
@ -851,9 +851,15 @@ static void processRegLinesW(FILE *in)
|
||||||
if(*s_eol == '\r' && *(s_eol+1) == '\n')
|
if(*s_eol == '\r' && *(s_eol+1) == '\n')
|
||||||
NextLine++;
|
NextLine++;
|
||||||
|
|
||||||
while(*(NextLine+1) == ' ' || *(NextLine+1) == '\t')
|
while(isspaceW(*NextLine))
|
||||||
NextLine++;
|
NextLine++;
|
||||||
|
|
||||||
|
if (!*NextLine)
|
||||||
|
{
|
||||||
|
s = NextLine;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
MoveMemory(s_eol - 1, NextLine, (CharsInBuf - (NextLine - s) + 1)*sizeof(WCHAR));
|
MoveMemory(s_eol - 1, NextLine, (CharsInBuf - (NextLine - s) + 1)*sizeof(WCHAR));
|
||||||
CharsInBuf -= NextLine - s_eol + 1;
|
CharsInBuf -= NextLine - s_eol + 1;
|
||||||
s_eol = 0;
|
s_eol = 0;
|
||||||
|
|
Loading…
Reference in a new issue