Browse Source

Typo in comment

Source commit: 7694569d1eacaf4fa47cb1bb51d07e8b4e3d1ea6
Martin Prikryl 9 years ago
parent
commit
170548b2f4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      source/windows/VCLCommon.cpp
  2. 1 1
      source/windows/WinInterface.cpp

+ 1 - 1
source/windows/VCLCommon.cpp

@@ -2219,7 +2219,7 @@ TShiftState __fastcall AllKeyShiftStates()
 static bool __fastcall FormActivationHook(void * Data, TMessage & Message)
 {
   bool Result = false;
-  // Some dialogs, when application is restord from minimization,
+  // Some dialogs, when application is restored from minimization,
   // do not get activated. So we do it explicitly here.
   // We cannot do this from TApplication::OnActivate because
   // TApplication.WndProc resets focus to the last active window afterwards.

+ 1 - 1
source/windows/WinInterface.cpp

@@ -259,7 +259,7 @@ unsigned int __fastcall ExecuteMessageDialog(TForm * Dialog, unsigned int Answer
   unsigned int Answer = Dialog->ShowModal();
   // mrCancel is returned always when X button is pressed, despite
   // no Cancel button was on the dialog. Find valid "cancel" answer.
-  // mrNone is retuned when Windows session is closing (log off)
+  // mrNone is returned when Windows session is closing (log off)
   if ((Answer == mrCancel) || (Answer == mrNone))
   {
     Answer = CancelAnswer(Answers);