diff --git a/components/other/windows/otherWindows.swift b/components/other/windows/otherWindows.swift index 62e1663..e3b6f85 100644 --- a/components/other/windows/otherWindows.swift +++ b/components/other/windows/otherWindows.swift @@ -1,7 +1,7 @@ import WinSDK -func otherSetupWindowIcons(_ iconId: Int) { - // Only visit windows owned by this UI thread, never another application's window. +func otherSetupWindowIcon(_ iconId: Int) { + // Only visit windows owned by this UI thread, never another application's window EnumThreadWindows(GetCurrentThreadId(), { wnd, iconId in let resource = UnsafePointer(bitPattern: Int(iconId)) let module = GetModuleHandleW(nil) @@ -30,7 +30,6 @@ func otherSetupWindowIcons(_ iconId: Int) { SendMessageW(wnd, UINT(WM_SETICON), WPARAM(ICON_BIG), LPARAM(Int(bitPattern: large))) } - // Shared resource icons remain valid for the lifetime of the process. return true }, LPARAM(iconId)) } diff --git a/hello/hello-platform/ver-windows/src/HPAppDelegate.swift b/hello/hello-platform/ver-windows/src/HPAppDelegate.swift index dde6e9b..ba0fc6e 100644 --- a/hello/hello-platform/ver-windows/src/HPAppDelegate.swift +++ b/hello/hello-platform/ver-windows/src/HPAppDelegate.swift @@ -8,7 +8,7 @@ final class HPAppDelegate { func setup() { otherSetupConsoleLogging(hp.ctrl, "HP") hp.setup() - otherSetupWindowIcons(101) + otherSetupWindowIcon(101) } }