diff --git a/dlls/gdi/driver.c b/dlls/gdi/driver.c index 7f9ace5f8d9..dfeee8bc9f6 100644 --- a/dlls/gdi/driver.c +++ b/dlls/gdi/driver.c @@ -226,7 +226,7 @@ static struct graphics_driver *load_display_driver(void) 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 ); } diff --git a/dlls/gdi/freetype.c b/dlls/gdi/freetype.c index 6677fd11c33..04a2de23295 100644 --- a/dlls/gdi/freetype.c +++ b/dlls/gdi/freetype.c @@ -2209,7 +2209,7 @@ static FT_UInt get_glyph_index(GdiFont font, UINT glyph) { 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); } diff --git a/dlls/gdi/printdrv.c b/dlls/gdi/printdrv.c index 1fde25376d5..4046d9a5ff8 100644 --- a/dlls/gdi/printdrv.c +++ b/dlls/gdi/printdrv.c @@ -465,7 +465,7 @@ static int CreateSpoolFile(LPCSTR pszOutput) 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))