.CtrlLib: fixed ErrorCode typo

git-svn-id: svn://ultimatepp.org/upp/trunk@3378 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
rylek 2011-04-27 10:47:38 +00:00
parent a904548a47
commit d4e208a2e2

View file

@ -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))