[PR #16592] Simplify WindowEmperor::HandleCommandlineArgs #30953

Open
opened 2026-01-31 09:44:03 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/16592

State: closed
Merged: Yes


This simplifies the function in two ways:

  • Passing nCmdShow from wWinMain alleviates the need to interpret
    the return value of GetStartupInfoW.
  • til::env::from_current_environment() calls GetEnvironmentStringsW
    to get the environment variables, while to_string() turns it back.
    Calling the latter directly alleviates the need for this round-trip.
**Original Pull Request:** https://github.com/microsoft/terminal/pull/16592 **State:** closed **Merged:** Yes --- This simplifies the function in two ways: * Passing `nCmdShow` from `wWinMain` alleviates the need to interpret the return value of `GetStartupInfoW`. * `til::env::from_current_environment()` calls `GetEnvironmentStringsW` to get the environment variables, while `to_string()` turns it back. Calling the latter directly alleviates the need for this round-trip.
claunia added the pull-request label 2026-01-31 09:44:03 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30953