Skip to content

Commit

Permalink
make stddefines parser handle crlf
Browse files Browse the repository at this point in the history
  • Loading branch information
randomdude999 committed Jan 21, 2024
1 parent 570b0ea commit de96dfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/asar/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1002,11 +1002,13 @@ void parse_std_defines(const char* textfile)
string define_val;

while (*pos != '=' && *pos != '\n') {
if(*pos == '\r') { pos++; continue; }
define_name += *pos;
pos++;
}
if (*pos != 0 && *pos != '\n') pos++; // skip =
if (*pos != 0 && *pos != '\r' && *pos != '\n') pos++; // skip =
while (*pos != 0 && *pos != '\n') {
if(*pos == '\r') { pos++; continue; }
define_val += *pos;
pos++;
}
Expand Down

0 comments on commit de96dfd

Please sign in to comment.