Kaydet (Commit) 5b715f0d authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Don't crash when attempting to open non-existent files under /assets

üst 924d0bdd
...@@ -907,6 +907,8 @@ SAL_CALL osl_openFilePath( const char *cpFilePath, oslFileHandle* pHandle, sal_u ...@@ -907,6 +907,8 @@ SAL_CALL osl_openFilePath( const char *cpFilePath, oslFileHandle* pHandle, sal_u
void *address; void *address;
size_t size; size_t size;
address = lo_apkentry(cpFilePath, &size); address = lo_apkentry(cpFilePath, &size);
if (address == NULL)
return osl_File_E_NOENT;
return osl_openMemoryAsFile(address, size, pHandle); return osl_openMemoryAsFile(address, size, pHandle);
} }
#endif #endif
......
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