Synchronize with trunk.
[reactos.git] / win32ss / gdi / ntgdi / icm.c
index 54aa505..d06dfc2 100644 (file)
@@ -23,6 +23,8 @@ IntGdiCreateColorSpace(
     HCOLORSPACE hCS;
 
     pCS = COLORSPACEOBJ_AllocCSWithHandle();
+    if (pCS == NULL) return NULL;
+
     hCS = pCS->BaseObject.hHmgr;
 
     pCS->lcsColorSpace = pLogColorSpace->lcsColorSpace;