summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2022-05-27 01:20:47 +0200
committerGitHub <noreply@github.com>2022-05-27 01:20:47 +0200
commitb01541f4e4b36b5477280473454fb648443c68b2 (patch)
treeb3bf6795af3bc9d7c7855c1307932cdb7bf1dcba /src
parentMerge pull request #8379 from lat9nq/amd-push-desc-workaround (diff)
parentpath_util: Resolve `-Wpointer-bool-conversion` warning (diff)
downloadyuzu-b01541f4e4b36b5477280473454fb648443c68b2.tar
yuzu-b01541f4e4b36b5477280473454fb648443c68b2.tar.gz
yuzu-b01541f4e4b36b5477280473454fb648443c68b2.tar.bz2
yuzu-b01541f4e4b36b5477280473454fb648443c68b2.tar.lz
yuzu-b01541f4e4b36b5477280473454fb648443c68b2.tar.xz
yuzu-b01541f4e4b36b5477280473454fb648443c68b2.tar.zst
yuzu-b01541f4e4b36b5477280473454fb648443c68b2.zip
Diffstat (limited to '')
-rw-r--r--src/common/fs/path_util.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/fs/path_util.cpp b/src/common/fs/path_util.cpp
index 62318e70c..1074f2421 100644
--- a/src/common/fs/path_util.cpp
+++ b/src/common/fs/path_util.cpp
@@ -232,9 +232,7 @@ void SetYuzuPath(YuzuPath yuzu_path, const fs::path& new_path) {
fs::path GetExeDirectory() {
wchar_t exe_path[MAX_PATH];
- GetModuleFileNameW(nullptr, exe_path, MAX_PATH);
-
- if (!exe_path) {
+ if (GetModuleFileNameW(nullptr, exe_path, MAX_PATH) == 0) {
LOG_ERROR(Common_Filesystem,
"Failed to get the path to the executable of the current process");
}