[PR #15336] Fix theoretical new-tab file drop crash #30604

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

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

State: closed
Merged: Yes


After retrieving the items via GetStorageItemsAsync() inside a try
clause it fails to check if the pointer is actually non-null.
Apart from this this commit fixes the unsafe use of this by properly
using get_weak(). Finally it allows >1 paths to be dropped.

Validation Steps Performed

  • Dropping >1 file works
  • Dropping >1 directory works
**Original Pull Request:** https://github.com/microsoft/terminal/pull/15336 **State:** closed **Merged:** Yes --- After retrieving the items via `GetStorageItemsAsync()` inside a try clause it fails to check if the pointer is actually non-null. Apart from this this commit fixes the unsafe use of `this` by properly using `get_weak()`. Finally it allows >1 paths to be dropped. ## Validation Steps Performed * Dropping >1 file works ✅ * Dropping >1 directory works ✅
claunia added the pull-request label 2026-01-31 09:41:48 +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#30604