Update RfGetEnvironmentVariable.cpp

This commit is contained in:
vxunderground
2022-07-15 12:10:59 -05:00
committed by GitHub
parent dc1d4c76f4
commit 6dceccddaa
+1 -1
View File
@@ -81,7 +81,7 @@ DWORD RfGetEnvironmentVariableA(LPCSTR Name, LPSTR Buffer, DWORD Size, BOOL UseA
if (String == NULL)
goto EXIT_ROUTINE;
pwName = (LPWSTR)RtlHeapAllocForward(256);
pwName = (LPWSTR)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(WCHAR) * 2);
if (pwName == NULL)
goto EXIT_ROUTINE;