diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-06-07 00:39:34 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-06-25 02:05:11 +0200 |
commit | 73dcb13619fc6603be628a7eea275ea02818c1ce (patch) | |
tree | 8812635bfd61575c5827ac18ed5f4b8b12b30f64 /src/core/hle | |
parent | web_browser: Take ECommerce applet frontend optionally in constructor (diff) | |
download | yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar.gz yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar.bz2 yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar.lz yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar.xz yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar.zst yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/service/am/applets/web_browser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/am/applets/web_browser.cpp b/src/core/hle/service/am/applets/web_browser.cpp index 58efebf06..3c3af476c 100644 --- a/src/core/hle/service/am/applets/web_browser.cpp +++ b/src/core/hle/service/am/applets/web_browser.cpp @@ -285,7 +285,9 @@ void WebBrowser::Finalize() { broker.PushNormalDataFromApplet(IStorage{data}); broker.SignalStateChanged(); - FileUtil::DeleteDirRecursively(temporary_dir); + if (!temporary_dir.empty() && FileUtil::IsDirectory(temporary_dir)) { + FileUtil::DeleteDirRecursively(temporary_dir); + } } void WebBrowser::InitializeInternal() { |