Make sure buffer isnt NULL. fixes bug 1102.

svn path=/trunk/; revision=20053
This commit is contained in:
Brandon Turner
2005-12-11 06:01:32 +00:00
parent c1582f3868
commit 84d4551234
+4
View File
@@ -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");