merge 20053
Modified: branches/ros-branch-0_2_9/reactos/lib/kernel32/misc/dllmain.c

Modified: branches/ros-branch-0_2_9/reactos/lib/kernel32/misc/dllmain.c
--- branches/ros-branch-0_2_9/reactos/lib/kernel32/misc/dllmain.c	2005-12-11 19:27:22 UTC (rev 20073)
+++ branches/ros-branch-0_2_9/reactos/lib/kernel32/misc/dllmain.c	2005-12-11 19:27:51 UTC (rev 20074)
@@ -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");