Index: fpdfsdk/src/pdfwindow/PWL_Wnd.cpp |
diff --git a/fpdfsdk/src/pdfwindow/PWL_Wnd.cpp b/fpdfsdk/src/pdfwindow/PWL_Wnd.cpp |
index 81bbbbfe8eaf511275fcdfa00f4ab49f7ca0d8c4..7b765f3e4f84e23ea1fbc6fc14286fcd13bd1b9f 100644 |
--- a/fpdfsdk/src/pdfwindow/PWL_Wnd.cpp |
+++ b/fpdfsdk/src/pdfwindow/PWL_Wnd.cpp |
@@ -685,8 +685,8 @@ void CPWL_Wnd::CreateVScrollBar(const PWL_CREATEPARAM& cp) { |
scp.eCursorType = FXCT_ARROW; |
scp.nTransparency = PWL_SCROLLBAR_TRANSPARANCY; |
- if ((m_pVScrollBar = new CPWL_ScrollBar(SBT_VSCROLL))) |
- m_pVScrollBar->Create(scp); |
+ m_pVScrollBar = new CPWL_ScrollBar(SBT_VSCROLL); |
+ m_pVScrollBar->Create(scp); |
} |
} |