mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +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;
|
||||
}
|
||||
|
||||
kclose(handle);
|
||||
|
||||
buf[len] = 0;
|
||||
osd->execdepth++;
|
||||
|
||||
|
@ -205,7 +207,6 @@ int OSD_Exec(const char *szScript)
|
|||
}
|
||||
|
||||
osd->execdepth--;
|
||||
kclose(handle);
|
||||
Bfree(buf);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue