Commit 1af1c67d authored by Alexandre Julliard's avatar Alexandre Julliard

Don't call strtok twice if it failed the first time.

parent 09cc91d1
......@@ -421,9 +421,8 @@ int DOSCONF_ReadConfig(void)
int ret = 1;
PROFILE_GetWineIniString( "wine", "config.sys", "", buffer, sizeof(buffer) );
filename = strtok(buffer, ",");
if (!(filename = strtok(buffer, ","))) return ret;
menuname = strtok(NULL, ",");
if (!filename) return ret;
DOSFS_GetFullName(filename, FALSE, &fullname);
if (menuname) menu_default = strdup(menuname);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment