mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
gdi: Cast-qual warnings fix.
This commit is contained in:
parent
5185750352
commit
7ee2f77158
2 changed files with 5 additions and 5 deletions
|
@ -245,7 +245,7 @@ static void FONT_LogFontWToA( const LOGFONTW *fontW, LPLOGFONTA fontA )
|
|||
|
||||
static void FONT_EnumLogFontExWTo16( const ENUMLOGFONTEXW *fontW, LPENUMLOGFONTEX16 font16 )
|
||||
{
|
||||
FONT_LogFontWTo16( (LPLOGFONTW)fontW, (LPLOGFONT16)font16);
|
||||
FONT_LogFontWTo16( (const LOGFONTW *)fontW, (LPLOGFONT16)font16);
|
||||
|
||||
WideCharToMultiByte( CP_ACP, 0, fontW->elfFullName, -1,
|
||||
(LPSTR) font16->elfFullName, LF_FULLFACESIZE, NULL, NULL );
|
||||
|
@ -260,7 +260,7 @@ static void FONT_EnumLogFontExWTo16( const ENUMLOGFONTEXW *fontW, LPENUMLOGFONTE
|
|||
|
||||
static void FONT_EnumLogFontExWToA( const ENUMLOGFONTEXW *fontW, LPENUMLOGFONTEXA fontA )
|
||||
{
|
||||
FONT_LogFontWToA( (LPLOGFONTW)fontW, (LPLOGFONTA)fontA);
|
||||
FONT_LogFontWToA( (const LOGFONTW *)fontW, (LPLOGFONTA)fontA);
|
||||
|
||||
WideCharToMultiByte( CP_ACP, 0, fontW->elfFullName, -1,
|
||||
(LPSTR) fontA->elfFullName, LF_FULLFACESIZE, NULL, NULL );
|
||||
|
@ -332,7 +332,7 @@ static void FONT_NewTextMetricExWTo16(const NEWTEXTMETRICEXW *ptmW, LPNEWTEXTMET
|
|||
|
||||
static void FONT_NewTextMetricExWToA(const NEWTEXTMETRICEXW *ptmW, NEWTEXTMETRICEXA *ptmA )
|
||||
{
|
||||
FONT_TextMetricWToA((LPTEXTMETRICW)ptmW, (LPTEXTMETRICA)ptmA);
|
||||
FONT_TextMetricWToA((const TEXTMETRICW *)ptmW, (LPTEXTMETRICA)ptmA);
|
||||
ptmA->ntmTm.ntmFlags = ptmW->ntmTm.ntmFlags;
|
||||
ptmA->ntmTm.ntmSizeEM = ptmW->ntmTm.ntmSizeEM;
|
||||
ptmA->ntmTm.ntmCellHeight = ptmW->ntmTm.ntmCellHeight;
|
||||
|
|
|
@ -452,7 +452,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
|
|||
{
|
||||
int fd=-1;
|
||||
char psCmd[1024];
|
||||
char *psCmdP = psCmd;
|
||||
const char *psCmdP = psCmd;
|
||||
HKEY hkey;
|
||||
|
||||
/* TTD convert the 'output device' into a spool file name */
|
||||
|
@ -474,7 +474,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
|
|||
TRACE("Got printerSpoolCommand '%s' for output device '%s'\n",
|
||||
psCmd, pszOutput);
|
||||
if (!*psCmd)
|
||||
psCmdP = (char *)pszOutput;
|
||||
psCmdP = pszOutput;
|
||||
else
|
||||
{
|
||||
while (*psCmdP && isspace(*psCmdP))
|
||||
|
|
Loading…
Reference in a new issue