Skip to content

Commit

Permalink
fix crash in PdfFilter.dll (for #2012)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Jul 21, 2021
1 parent 2b65406 commit 25472e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ifilter/CPdfFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ HRESULT CPdfFilter::GetNextChunkValue(CChunkValue& chunkValue) {
FreePageText(&pageText);
continue;
}
str.Set(pageText.text);
AutoFreeWstr str2 = str::Replace(str.Get(), L"\n", L"\r\n");
AutoFreeWstr str2 = str::Replace(pageText.text, L"\n", L"\r\n");
chunkValue.SetTextValue(PKEY_Search_Contents, str2.Get(), CHUNK_TEXT);
FreePageText(&pageText);
return S_OK;
Expand Down

0 comments on commit 25472e4

Please sign in to comment.