mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
(Android) Fixed an issue where attempting to view invalid PDF files could crash the application
This commit is contained in:
parent
2687db1e17
commit
597f58aca0
|
@ -305,7 +305,8 @@ bool PDFViewer::getDocumentInfo()
|
||||||
CloseHandle(pi.hProcess);
|
CloseHandle(pi.hProcess);
|
||||||
CloseHandle(pi.hThread);
|
CloseHandle(pi.hThread);
|
||||||
#elif defined(__ANDROID__)
|
#elif defined(__ANDROID__)
|
||||||
ConvertPDF::processFile(mManualPath, "-fileinfo", 0, 0, 0, commandOutput);
|
if (ConvertPDF::processFile(mManualPath, "-fileinfo", 0, 0, 0, commandOutput) == -1)
|
||||||
|
return false;
|
||||||
#else
|
#else
|
||||||
FILE* commandPipe;
|
FILE* commandPipe;
|
||||||
std::array<char, 512> buffer {};
|
std::array<char, 512> buffer {};
|
||||||
|
|
Loading…
Reference in a new issue