From d4e208a2e21114c271f5d5b514097fe799763209 Mon Sep 17 00:00:00 2001 From: rylek Date: Wed, 27 Apr 2011 10:47:38 +0000 Subject: [PATCH] .CtrlLib: fixed ErrorCode typo git-svn-id: svn://ultimatepp.org/upp/trunk@3378 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/TrayIconWin32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/CtrlLib/TrayIconWin32.cpp b/uppsrc/CtrlLib/TrayIconWin32.cpp index 14f1a30e5..25ef87595 100644 --- a/uppsrc/CtrlLib/TrayIconWin32.cpp +++ b/uppsrc/CtrlLib/TrayIconWin32.cpp @@ -68,7 +68,7 @@ void TrayIcon::Notify(dword msg) // Same, case with delete, we can try modify and if KO then we can consider that is icon // was deleted correctly. In other cases, we will retry after 50ms DWORD ErrorCode = GetLastError(); - if(ErrorCode == ERROR_SUCCESS || ErrorCode == ERROR_TIMEOU) { + if(ErrorCode == ERROR_SUCCESS || ErrorCode == ERROR_TIMEOUT) { for(int retry = 0; retry < 60; retry++) { Sleep(50); if(Shell_NotifyIcon(NIM_MODIFY, (NOTIFYICONDATA *)&nid) == (msg != NIM_DELETE))