Make sure buffer isnt NULL. fixes bug 1102.
Modified: trunk/reactos/lib/kernel32/misc/dllmain.c

Modified: trunk/reactos/lib/kernel32/misc/dllmain.c
--- trunk/reactos/lib/kernel32/misc/dllmain.c	2005-12-11 05:51:14 UTC (rev 20052)
+++ trunk/reactos/lib/kernel32/misc/dllmain.c	2005-12-11 06:01:32 UTC (rev 20053)
@@ -348,6 +348,10 @@
         SystemDirectory.Buffer = RtlAllocateHeap(hProcessHeap,
                                                  0,
                                                  SystemDirectory.MaximumLength);
+        if(SystemDirectory.Buffer == NULL)
+        {
+           return FALSE;
+        }
         wcscpy(SystemDirectory.Buffer, WindowsDirectory.Buffer);
         wcscat(SystemDirectory.Buffer, L"\\System32");