There was an error while loading. Please reload this page.
2 parents 1a316e8 + abeb647 commit a1d6f39Copy full SHA for a1d6f39
1 file changed
PC/launcher.c
@@ -114,7 +114,7 @@ static wchar_t * get_env(wchar_t * key)
114
if (result >= BUFSIZE) {
115
/* Large environment variable. Accept some leakage */
116
wchar_t *buf2 = (wchar_t*)malloc(sizeof(wchar_t) * (result+1));
117
- if (buf2 = NULL) {
+ if (buf2 == NULL) {
118
error(RC_NO_MEMORY, L"Could not allocate environment buffer");
119
}
120
GetEnvironmentVariableW(key, buf2, result);
0 commit comments