Index: fpdfsdk/cpdfsdk_interform.cpp |
diff --git a/fpdfsdk/cpdfsdk_interform.cpp b/fpdfsdk/cpdfsdk_interform.cpp |
index a8e2663a9bd383c08a44e68ad98a318e3bcf42dc..1f182d4a0cb0ad80085f9384d0db3475e9774ccd 100644 |
--- a/fpdfsdk/cpdfsdk_interform.cpp |
+++ b/fpdfsdk/cpdfsdk_interform.cpp |
@@ -323,7 +323,7 @@ CFX_WideString CPDFSDK_InterForm::OnFormat(CPDF_FormField* pFormField, |
} |
void CPDFSDK_InterForm::ResetFieldAppearance(CPDF_FormField* pFormField, |
- const FX_WCHAR* sValue, |
+ const CFX_WideString* sValue, |
FX_BOOL bValueChanged) { |
for (int i = 0, sz = pFormField->CountControls(); i < sz; i++) { |
CPDF_FormControl* pFormCtrl = pFormField->GetControl(i); |
@@ -634,7 +634,7 @@ void CPDFSDK_InterForm::AfterValueChange(CPDF_FormField* pField) { |
OnCalculate(pField); |
FX_BOOL bFormatted = FALSE; |
CFX_WideString sValue = OnFormat(pField, bFormatted); |
- ResetFieldAppearance(pField, bFormatted ? sValue.c_str() : nullptr, TRUE); |
+ ResetFieldAppearance(pField, bFormatted ? &sValue : nullptr, TRUE); |
UpdateField(pField); |
} |
} |