- fix a bug

- fix identation
- only register hotkeys when not being in setup

See issue #2684 for more details.

svn path=/trunk/; revision=29644
This commit is contained in:
Johannes Anderwald 2007-10-17 17:37:02 +00:00
parent f0ad2263bf
commit abfca5716e

View file

@ -267,9 +267,9 @@ cleanup:
RemoveStatusMessage(Session);
if (!ret)
{
Session->UserToken = NULL;
CloseHandle(Session->UserToken);
}
CloseHandle(Session->UserToken);
Session->UserToken = NULL;
}
return ret;
}
@ -869,8 +869,10 @@ SASWindowProc(
/* Save the Session pointer */
SetWindowLongPtrW(hwndDlg, GWLP_USERDATA, (LONG_PTR)Session);
return RegisterHotKeys(Session, hwndDlg);
if (!GetSetupType())
{
return RegisterHotKeys(Session, hwndDlg);
}
}
case WM_DESTROY:
{