mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +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);
|
ncm.cbSize = sizeof(ncm);
|
||||||
if(!SystemParametersInfoW(SPI_GETNONCLIENTMETRICS, sizeof(ncm), &ncm, 0))
|
if(!SystemParametersInfoW(SPI_GETNONCLIENTMETRICS, sizeof(ncm), &ncm, 0))
|
||||||
{
|
{
|
||||||
DbgPrint("MenuInit(): SystemParametersInfoW(SPI_GETNONCLIENTMETRICS) failed!\n");
|
ERR("MenuInit(): SystemParametersInfoW(SPI_GETNONCLIENTMETRICS) failed!\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
hMenuFont = CreateFontIndirectW(&ncm.lfMenuFont);
|
hMenuFont = CreateFontIndirectW(&ncm.lfMenuFont);
|
||||||
if(hMenuFont == NULL)
|
if(hMenuFont == NULL)
|
||||||
{
|
{
|
||||||
DbgPrint("MenuInit(): CreateFontIndirectW(hMenuFont) failed!\n");
|
ERR("MenuInit(): CreateFontIndirectW(hMenuFont) failed!\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2183,7 +2183,7 @@ MenuInit(VOID)
|
||||||
hMenuFontBold = CreateFontIndirectW(&ncm.lfMenuFont);
|
hMenuFontBold = CreateFontIndirectW(&ncm.lfMenuFont);
|
||||||
if(hMenuFontBold == NULL)
|
if(hMenuFontBold == NULL)
|
||||||
{
|
{
|
||||||
DbgPrint("MenuInit(): CreateFontIndirectW(hMenuFontBold) failed!\n");
|
ERR("MenuInit(): CreateFontIndirectW(hMenuFontBold) failed!\n");
|
||||||
DeleteObject(hMenuFont);
|
DeleteObject(hMenuFont);
|
||||||
hMenuFont = NULL;
|
hMenuFont = NULL;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue