Browse Source
Merge pull request #8381 from lat9nq/path-util-pointer-bool
path_util: Resolve `-Wpointer-bool-conversion` warning
pull/15/merge
Mai M
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
3 deletions
-
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"); |
|
|
|
} |
|
|
|
|