Skip to content

Commit 048711b

Browse files
mercuryskyErik Murstig
and
Erik Murstig
authored
Fixed home_dir for windows (#170)
Co-authored-by: Erik Murstig <[email protected]>
1 parent 3edf176 commit 048711b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loguru.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ namespace loguru
703703
char* user_profile;
704704
size_t len;
705705
errno_t err = _dupenv_s(&user_profile, &len, "USERPROFILE");
706-
CHECK_F(err != 0, "Missing USERPROFILE");
706+
CHECK_F(err == 0, "Missing USERPROFILE");
707707
return user_profile;
708708
#else // _WIN32
709709
auto home = getenv("HOME");

0 commit comments

Comments
 (0)