浏览代码

Configuration object may not exist for early (or late) error message dialogs

(cherry picked from commit 932ac192ae816f5d327ba4dac96416624fc268da)

Source commit: bbad2756dd867f637405a98c192e76f478e6900b
Martin Prikryl 6 年之前
父节点
当前提交
ebb9da2066
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/windows/VCLCommon.cpp

+ 1 - 1
source/windows/VCLCommon.cpp

@@ -852,7 +852,7 @@ static unsigned int WindowPrintClickCount = 0;
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
 void __fastcall CountClicksForWindowPrint(TForm * Form)
 void __fastcall CountClicksForWindowPrint(TForm * Form)
 {
 {
-  if (WinConfiguration->AllowWindowPrint)
+  if ((WinConfiguration != NULL) && WinConfiguration->AllowWindowPrint)
   {
   {
     DWORD Tick = GetTickCount();
     DWORD Tick = GetTickCount();
     if (WindowPrintForm != Form)
     if (WindowPrintForm != Form)