mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -05:00
SetCurrentProcessExplicitAppUserModelID to fix jumplist/removable media bug
The algorithm Windows uses to generate AppUserModelIDs "hangs on" to removable media (CDs/DVDs) if PuTTY is launched with a CD/DVD in a drive. Set the AppUserModelID explicitly to avoid using this algorithm.
This commit is contained in:
@ -357,6 +357,11 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
|
||||
InitCommonControls();
|
||||
|
||||
/* Set Explicit App User Model Id so that jump lists don't cause
|
||||
PuTTY to hang on to removable media. */
|
||||
|
||||
set_explicit_app_user_model_id();
|
||||
|
||||
/* Ensure a Maximize setting in Explorer doesn't maximise the
|
||||
* config box. */
|
||||
defuse_showwindow();
|
||||
|
Reference in New Issue
Block a user