Index: fpdfsdk/fsdk_baseform.cpp |
diff --git a/fpdfsdk/fsdk_baseform.cpp b/fpdfsdk/fsdk_baseform.cpp |
index bfeba0e6dd802b6a7de51257f0d2f063fc29a43d..288a2fe5a3d5411cfe7f7fe4cda000336ca7955b 100644 |
--- a/fpdfsdk/fsdk_baseform.cpp |
+++ b/fpdfsdk/fsdk_baseform.cpp |
@@ -718,7 +718,7 @@ void CPDFSDK_Widget::ResetAppearance(FX_BOOL bValueChanged) { |
case FIELDTYPE_COMBOBOX: { |
FX_BOOL bFormated = FALSE; |
CFX_WideString sValue = OnFormat(bFormated); |
- ResetAppearance(bFormated ? sValue : nullptr, TRUE); |
+ ResetAppearance(bFormated ? sValue.c_str() : nullptr, TRUE); |
} break; |
default: |
ResetAppearance(nullptr, FALSE); |
@@ -1546,7 +1546,7 @@ void CPDFSDK_Widget::ResetAppearance_TextField(const FX_WCHAR* sValue) { |
CFX_WideString sValueTmp; |
if (!sValue && GetMixXFAWidget()) { |
sValueTmp = GetValue(TRUE); |
- sValue = sValueTmp; |
+ sValue = sValueTmp.c_str(); |
} |
#endif // PDF_ENABLE_XFA |