mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[user32]
- don't use DbgPrint for error messages svn path=/trunk/; revision=55289
This commit is contained in:
parent
2bf1a41895
commit
07155c928c
1 changed files with 3 additions and 3 deletions
|
@ -2168,14 +2168,14 @@ MenuInit(VOID)
|
|||
ncm.cbSize = sizeof(ncm);
|
||||
if(!SystemParametersInfoW(SPI_GETNONCLIENTMETRICS, sizeof(ncm), &ncm, 0))
|
||||
{
|
||||
DbgPrint("MenuInit(): SystemParametersInfoW(SPI_GETNONCLIENTMETRICS) failed!\n");
|
||||
ERR("MenuInit(): SystemParametersInfoW(SPI_GETNONCLIENTMETRICS) failed!\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
hMenuFont = CreateFontIndirectW(&ncm.lfMenuFont);
|
||||
if(hMenuFont == NULL)
|
||||
{
|
||||
DbgPrint("MenuInit(): CreateFontIndirectW(hMenuFont) failed!\n");
|
||||
ERR("MenuInit(): CreateFontIndirectW(hMenuFont) failed!\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -2183,7 +2183,7 @@ MenuInit(VOID)
|
|||
hMenuFontBold = CreateFontIndirectW(&ncm.lfMenuFont);
|
||||
if(hMenuFontBold == NULL)
|
||||
{
|
||||
DbgPrint("MenuInit(): CreateFontIndirectW(hMenuFontBold) failed!\n");
|
||||
ERR("MenuInit(): CreateFontIndirectW(hMenuFontBold) failed!\n");
|
||||
DeleteObject(hMenuFont);
|
||||
hMenuFont = NULL;
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue