mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Fixes to SystemParametersInfoA (Unicode->Ansi conversions)
svn path=/trunk/; revision=5527
This commit is contained in:
parent
4fa73ed4a8
commit
4ad39f0a27
1 changed files with 30 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: desktop.c,v 1.22 2003/08/09 18:22:11 mf Exp $
|
/* $Id: desktop.c,v 1.23 2003/08/11 11:02:43 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -13,6 +13,7 @@
|
||||||
#include <user32.h>
|
#include <user32.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
#include <rosrtl/devmode.h>
|
#include <rosrtl/devmode.h>
|
||||||
|
#include <rosrtl/logfont.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
|
@ -33,7 +34,34 @@ SystemParametersInfoA(UINT uiAction,
|
||||||
PVOID pvParam,
|
PVOID pvParam,
|
||||||
UINT fWinIni)
|
UINT fWinIni)
|
||||||
{
|
{
|
||||||
return(SystemParametersInfoW(uiAction, uiParam, pvParam, fWinIni));
|
WINBOOL Ret;
|
||||||
|
NONCLIENTMETRICSA *nclma;
|
||||||
|
NONCLIENTMETRICSW nclmw;
|
||||||
|
|
||||||
|
switch (uiAction)
|
||||||
|
{
|
||||||
|
case SPI_GETNONCLIENTMETRICS:
|
||||||
|
nclma = pvParam;
|
||||||
|
nclmw.cbSize = sizeof(NONCLIENTMETRICSW);
|
||||||
|
uiParam = sizeof(NONCLIENTMETRICSW);
|
||||||
|
pvParam = &nclmw;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
Ret = SystemParametersInfoW(uiAction, uiParam, pvParam, fWinIni);
|
||||||
|
if (! Ret)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (uiAction)
|
||||||
|
{
|
||||||
|
case SPI_GETNONCLIENTMETRICS:
|
||||||
|
RosRtlLogFontW2A(&(nclma->lfCaptionFont), &(nclmw.lfCaptionFont));
|
||||||
|
RosRtlLogFontW2A(&(nclma->lfSmCaptionFont), &(nclmw.lfSmCaptionFont));
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue