mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.CtrlLib: fixed ErrorCode typo
git-svn-id: svn://ultimatepp.org/upp/trunk@3378 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
a904548a47
commit
d4e208a2e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue