| Index: core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp
|
| diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp
|
| index 386c49d0052f59f48cdc96fc76808145bdbd78c0..2b68a0403f9aca5d37e1b68490153c4e82dc045b 100644
|
| --- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp
|
| +++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp
|
| @@ -16,12 +16,11 @@ CPDF_Dictionary* CPDF_Image::InitJPEG(uint8_t* pData, FX_DWORD size) {
|
| int32_t height;
|
| int32_t num_comps;
|
| int32_t bits;
|
| - bool color_trans;
|
| + FX_BOOL color_trans;
|
| if (!CPDF_ModuleMgr::Get()->GetJpegModule()->LoadInfo(
|
| - pData, size, &width, &height, &num_comps, &bits, &color_trans)) {
|
| - return nullptr;
|
| + pData, size, width, height, num_comps, bits, color_trans)) {
|
| + return NULL;
|
| }
|
| -
|
| CPDF_Dictionary* pDict = new CPDF_Dictionary;
|
| pDict->SetAtName("Type", "XObject");
|
| pDict->SetAtName("Subtype", "Image");
|
|
|