Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
🔧 Fix windows app log path #10911
#10910 informed me that
_wgetenv returns null when the variable is not defined and you will get a crash. If you insist on using environment variables, please add checks for this situation.
A better approach however is to get a "known folder" path using
SHGetKnownFolderPath - use either
FOLDERID_Profile if you really want the home directory (discouraged), or
FOLDERID_LocalAppData for a location where apps are meant to store their runtime data.