Explorar o código

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

(cherry picked from commit 932ac192ae816f5d327ba4dac96416624fc268da)

Source commit: bbad2756dd867f637405a98c192e76f478e6900b
Martin Prikryl %!s(int64=6) %!d(string=hai) anos
pai
achega
ebb9da2066
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
 {
-  if (WinConfiguration->AllowWindowPrint)
+  if ((WinConfiguration != NULL) && WinConfiguration->AllowWindowPrint)
   {
     DWORD Tick = GetTickCount();
     if (WindowPrintForm != Form)