Skip to content

Commit

Permalink
Extra check and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 21, 2024
1 parent 2d9afaa commit b2c1969
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UI/DriverManagerScreen.cpp
Expand Up @@ -200,6 +200,9 @@ UI::EventReturn DriverManagerScreen::OnCustomDriverChange(UI::EventParams &e) {
}

UI::EventReturn DriverManagerScreen::OnCustomDriverUninstall(UI::EventParams &e) {
if (e.s.empty()) {
return UI::EVENT_DONE;
}
INFO_LOG(G3D, "Uninstalling driver: %s", e.s.c_str());

Path folder = GetDriverPath() / e.s;
Expand Down
1 change: 1 addition & 0 deletions UI/MemStickScreen.cpp
Expand Up @@ -753,6 +753,7 @@ UI::EventReturn ConfirmMemstickMoveScreen::OnConfirm(UI::EventParams &params) {
}

// Delete all the old, now hopefully empty, directories.
// Hopefully DeleteDir actually fails if it contains a file...
for (auto &dirSuffix : directorySuffixesToCreate) {
Path dir = moveSrc / dirSuffix;
if (dryRun) {
Expand Down

0 comments on commit b2c1969

Please sign in to comment.