mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-12 14:45:41 +00:00
Fix crash issue with nested console script execution
git-svn-id: https://svn.eduke32.com/eduke32@6534 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
bf2047bc0f
commit
a18d03635c
1 changed files with 2 additions and 1 deletions
|
@ -193,6 +193,8 @@ int OSD_Exec(const char *szScript)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kclose(handle);
|
||||||
|
|
||||||
buf[len] = 0;
|
buf[len] = 0;
|
||||||
osd->execdepth++;
|
osd->execdepth++;
|
||||||
|
|
||||||
|
@ -205,7 +207,6 @@ int OSD_Exec(const char *szScript)
|
||||||
}
|
}
|
||||||
|
|
||||||
osd->execdepth--;
|
osd->execdepth--;
|
||||||
kclose(handle);
|
|
||||||
Bfree(buf);
|
Bfree(buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue