mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Merge branch 'pre-0.64'
This commit is contained in:
@ -661,6 +661,7 @@ int main(int argc, char **argv)
|
||||
|
||||
if (toplevel_callback_pending()) {
|
||||
ticks = 0;
|
||||
next = now;
|
||||
} else if (run_timers(now, &next)) {
|
||||
then = now;
|
||||
now = GETTICKCOUNT();
|
||||
@ -670,6 +671,8 @@ int main(int argc, char **argv)
|
||||
ticks = next - now;
|
||||
} else {
|
||||
ticks = INFINITE;
|
||||
/* no need to initialise next here because we can never
|
||||
* get WAIT_TIMEOUT */
|
||||
}
|
||||
|
||||
handles = handle_get_events(&nhandles);
|
||||
|
@ -495,6 +495,7 @@ int do_eventsel_loop(HANDLE other_event)
|
||||
|
||||
if (toplevel_callback_pending()) {
|
||||
ticks = 0;
|
||||
next = now;
|
||||
} else if (run_timers(now, &next)) {
|
||||
then = now;
|
||||
now = GETTICKCOUNT();
|
||||
@ -504,6 +505,8 @@ int do_eventsel_loop(HANDLE other_event)
|
||||
ticks = next - now;
|
||||
} else {
|
||||
ticks = INFINITE;
|
||||
/* no need to initialise next here because we can never get
|
||||
* WAIT_TIMEOUT */
|
||||
}
|
||||
|
||||
handles = handle_get_events(&nhandles);
|
||||
|
@ -157,6 +157,7 @@ int platform_ssh_share(const char *pi_name, Conf *conf,
|
||||
if (!make_private_security_descriptor(MUTEX_ALL_ACCESS,
|
||||
&psd, &acl, logtext)) {
|
||||
sfree(mutexname);
|
||||
sfree(name);
|
||||
return SHARE_NONE;
|
||||
}
|
||||
|
||||
@ -171,6 +172,7 @@ int platform_ssh_share(const char *pi_name, Conf *conf,
|
||||
*logtext = dupprintf("CreateMutex(\"%s\") failed: %s",
|
||||
mutexname, win_strerror(GetLastError()));
|
||||
sfree(mutexname);
|
||||
sfree(name);
|
||||
LocalFree(psd);
|
||||
LocalFree(acl);
|
||||
return SHARE_NONE;
|
||||
|
Reference in New Issue
Block a user