mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +00:00
Make sure buffer isnt NULL. fixes bug 1102.
svn path=/trunk/; revision=20053
This commit is contained in:
@@ -348,6 +348,10 @@ DllMain(HANDLE hDll,
|
||||
SystemDirectory.Buffer = RtlAllocateHeap(hProcessHeap,
|
||||
0,
|
||||
SystemDirectory.MaximumLength);
|
||||
if(SystemDirectory.Buffer == NULL)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
wcscpy(SystemDirectory.Buffer, WindowsDirectory.Buffer);
|
||||
wcscat(SystemDirectory.Buffer, L"\\System32");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user