Author: tkreuzer
Date: Thu May 22 18:16:35 2008
New Revision: 33651
URL:
http://svn.reactos.org/svn/reactos?rev=33651&view=rev
Log:
fix a cast and indentation
Modified:
trunk/reactos/subsystems/win32/win32k/objects/stockobj.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/stockobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/stockobj.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/stockobj.c [iso-8859-1] Thu May 22
18:16:35 2008
@@ -144,15 +144,15 @@
(void) TextIntCreateFontIndirect(&SystemFixedFont,
(HFONT*)&StockObjects[SYSTEM_FIXED_FONT]);
(void) TextIntCreateFontIndirect(&DefaultGuiFont,
(HFONT*)&StockObjects[DEFAULT_GUI_FONT]);
- StockObjects[DEFAULT_PALETTE] = (HGDIOBJ*)PALETTE_Init();
+ StockObjects[DEFAULT_PALETTE] = (HGDIOBJ)PALETTE_Init();
for (Object = 0; Object < NB_STOCK_OBJECTS; Object++)
+ {
+ if (NULL != StockObjects[Object])
{
- if (NULL != StockObjects[Object])
- {
- GDIOBJ_ConvertToStockObj(&StockObjects[Object]);
- }
+ GDIOBJ_ConvertToStockObj(&StockObjects[Object]);
}
+ }
DPRINT("Completed creation of stock objects\n");
}