forked from mia/Aegisub
Fix #892, LuaScriptReader wasn't checking if opening the file actually succeeded.
Check, and throw an exception if it fails. Originally committed to SVN as r3065.
This commit is contained in:
parent
293f6fb32e
commit
688cea62f4
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ namespace Automation4 {
|
|||
#else
|
||||
f = fopen(filename.fn_str(), "rb");
|
||||
#endif
|
||||
if (!f)
|
||||
throw _T("Could not open script file");
|
||||
first = true;
|
||||
databuf = new char[bufsize];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue