Index: core/src/fpdfdoc/doc_form.cpp |
diff --git a/core/src/fpdfdoc/doc_form.cpp b/core/src/fpdfdoc/doc_form.cpp |
index 9252e073e047c53ead4c333cbb9904cee2110fc7..f40f447a685fe6c7bc8505493127a50ccb0bdfc9 100644 |
--- a/core/src/fpdfdoc/doc_form.cpp |
+++ b/core/src/fpdfdoc/doc_form.cpp |
@@ -393,7 +393,7 @@ static FX_BOOL RetrieveStockFont(int iFontObject, |
uint8_t charSet, |
LOGFONTA& lf) { |
HFONT hFont = (HFONT)::GetStockObject(iFontObject); |
- if (hFont != NULL) { |
+ if (hFont) { |
memset(&lf, 0, sizeof(LOGFONTA)); |
int iRet = ::GetObject(hFont, sizeof(LOGFONTA), &lf); |
if (iRet > 0 && (lf.lfCharSet == charSet || charSet == 255)) { |