GDI32: -Wpointer-sign fixes for gcc 4.0
Mike McCormack
mike at codeweavers.com
Mon Jul 4 10:54:05 CDT 2005
ChangeLog:
* -Wpointer-sign fixes for gcc 4.0
-------------- next part --------------
? dlls/gdi/metafile-createcompatdc-hacks.diff
? dlls/gdi/x
Index: dlls/gdi/driver.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/driver.c,v
retrieving revision 1.38
diff -u -p -r1.38 driver.c
--- dlls/gdi/driver.c 20 Jun 2005 16:04:32 -0000 1.38
+++ dlls/gdi/driver.c 4 Jul 2005 06:56:01 -0000
@@ -226,7 +226,7 @@ static struct graphics_driver *load_disp
if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Drivers", &hkey ))
{
DWORD type, count = sizeof(buffer);
- RegQueryValueExA( hkey, "Graphics", 0, &type, buffer, &count );
+ RegQueryValueExA( hkey, "Graphics", 0, &type, (LPBYTE) buffer, &count );
RegCloseKey( hkey );
}
Index: dlls/gdi/freetype.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/freetype.c,v
retrieving revision 1.88
diff -u -p -r1.88 freetype.c
--- dlls/gdi/freetype.c 28 Jun 2005 19:15:17 -0000 1.88
+++ dlls/gdi/freetype.c 4 Jul 2005 06:56:02 -0000
@@ -2209,7 +2209,7 @@ static FT_UInt get_glyph_index(GdiFont f
{
if(font->ft_face->charmap->encoding == FT_ENCODING_NONE) {
WCHAR wc = (WCHAR)glyph;
- unsigned char buf;
+ char buf;
WideCharToMultiByte(font->codepage, 0, &wc, 1, &buf, sizeof(buf), 0, 0);
return pFT_Get_Char_Index(font->ft_face, buf);
}
Index: dlls/gdi/printdrv.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/printdrv.c,v
retrieving revision 1.44
diff -u -p -r1.44 printdrv.c
--- dlls/gdi/printdrv.c 28 Jun 2005 13:55:02 -0000 1.44
+++ dlls/gdi/printdrv.c 4 Jul 2005 06:56:02 -0000
@@ -465,7 +465,7 @@ static int CreateSpoolFile(LPCSTR pszOut
if(!RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Printing\\Spooler", &hkey))
{
DWORD type, count = sizeof(psCmd);
- RegQueryValueExA(hkey, pszOutput, 0, &type, psCmd, &count);
+ RegQueryValueExA(hkey, pszOutput, 0, &type, (LPBYTE)psCmd, &count);
RegCloseKey(hkey);
}
if (!psCmd[0] && !strncmp("LPR:",pszOutput,4))
More information about the wine-patches
mailing list