[ros-diffs] [turner] 20075: merge 20051 / 20052

turner at svn.reactos.com turner at svn.reactos.com
Sun Dec 11 20:28:20 CET 2005


merge 20051 / 20052
Modified: branches/ros-branch-0_2_9/reactos/lib/kernel32/misc/errormsg.c
  _____  

Modified: branches/ros-branch-0_2_9/reactos/lib/kernel32/misc/errormsg.c
--- branches/ros-branch-0_2_9/reactos/lib/kernel32/misc/errormsg.c
2005-12-11 19:27:51 UTC (rev 20074)
+++ branches/ros-branch-0_2_9/reactos/lib/kernel32/misc/errormsg.c
2005-12-11 19:28:17 UTC (rev 20075)
@@ -177,6 +177,10 @@

     if (dwFlags & FORMAT_MESSAGE_FROM_STRING)
     {
         from = HeapAlloc( GetProcessHeap(), 0,
strlen((LPCSTR)lpSource)+1 );
+        if (from == NULL)
+        {
+            return 0;
+        }
         strcpy( from, (LPCSTR)lpSource );
     }
     else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051211/12f3eda5/attachment.html


More information about the Ros-diffs mailing list