mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Hack: ReadParamString supports "STOP" because of stdarg bug.
This commit is contained in:
parent
14d709c136
commit
199fec6674
1 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,8 @@ bool ReadParamString(const char* str, ...)
|
|||
va_start(args, str);
|
||||
while ( (keyname = va_arg(args, const char*)) )
|
||||
{
|
||||
if ( String::Compare(keyname, "STOP") == 0 )
|
||||
break;
|
||||
char** nameptr = va_arg(args, char**);
|
||||
if ( String::Compare(keyname, name) ) { continue; }
|
||||
*nameptr = value;
|
||||
|
|
Loading…
Add table
Reference in a new issue