-Wpointer-sign fixes for gcc 4.0.
This commit is contained in:
parent
27407fad35
commit
89424ce848
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue