mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-27 06:22:49 +00:00
Merge pull request #8381 from lat9nq/path-util-pointer-bool
path_util: Resolve `-Wpointer-bool-conversion` warning
This commit is contained in:
commit
b01541f4e4
|
@ -232,9 +232,7 @@ void SetYuzuPath(YuzuPath yuzu_path, const fs::path& new_path) {
|
||||||
fs::path GetExeDirectory() {
|
fs::path GetExeDirectory() {
|
||||||
wchar_t exe_path[MAX_PATH];
|
wchar_t exe_path[MAX_PATH];
|
||||||
|
|
||||||
GetModuleFileNameW(nullptr, exe_path, MAX_PATH);
|
if (GetModuleFileNameW(nullptr, exe_path, MAX_PATH) == 0) {
|
||||||
|
|
||||||
if (!exe_path) {
|
|
||||||
LOG_ERROR(Common_Filesystem,
|
LOG_ERROR(Common_Filesystem,
|
||||||
"Failed to get the path to the executable of the current process");
|
"Failed to get the path to the executable of the current process");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue