mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 03:55:47 +08:00
refactoring
This commit is contained in:
@ -124,6 +124,8 @@ bool COfficeFileFormatChecker::isPdfFormatFile (unsigned char* pBuffer,int dwByt
|
||||
pTempBuffer[nTempBufferSize - 1] = '\0';
|
||||
|
||||
char* pFirst = strstr( (char*)pTempBuffer, "%PDF-" );
|
||||
delete [] pTempBuffer;
|
||||
|
||||
if( NULL != pFirst )
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user