-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix theoretical new-tab file drop crash (#15336)
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 ✅ (cherry picked from commit 99abb2a) Service-Card-Id: 89193984 Service-Version: 1.18
- Loading branch information
Showing
2 changed files
with
31 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters