Skip to content

Commit 25472e4

Browse files
committed
fix crash in PdfFilter.dll (for #2012)
1 parent 2b65406 commit 25472e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ifilter/CPdfFilter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ HRESULT CPdfFilter::GetNextChunkValue(CChunkValue& chunkValue) {
120120
FreePageText(&pageText);
121121
continue;
122122
}
123-
str.Set(pageText.text);
124-
AutoFreeWstr str2 = str::Replace(str.Get(), L"\n", L"\r\n");
123+
AutoFreeWstr str2 = str::Replace(pageText.text, L"\n", L"\r\n");
125124
chunkValue.SetTextValue(PKEY_Search_Contents, str2.Get(), CHUNK_TEXT);
126125
FreePageText(&pageText);
127126
return S_OK;

0 commit comments

Comments
 (0)