From: Thomas Bluemel Date: Fri, 30 Sep 2005 11:57:49 +0000 (+0000) Subject: fixed pointer types differ in signedness warnings X-Git-Tag: ReactOS-0.2.8~254 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=4885539cea67a04d48273fc60b71ecc9900054ae fixed pointer types differ in signedness warnings svn path=/trunk/; revision=18167 --- diff --git a/reactos/subsys/system/notepad/settings.c b/reactos/subsys/system/notepad/settings.c index 2e424c4a495..c54f72ef49c 100644 --- a/reactos/subsys/system/notepad/settings.c +++ b/reactos/subsys/system/notepad/settings.c @@ -132,16 +132,16 @@ void LoadSettings(void) { QueryByte(hKey, "lfCharSet", &Globals.lfFont.lfCharSet); QueryByte(hKey, "lfClipPrecision", &Globals.lfFont.lfClipPrecision); - QueryDword(hKey, "lfEscapement", &Globals.lfFont.lfEscapement); + QueryDword(hKey, "lfEscapement", (DWORD*)&Globals.lfFont.lfEscapement); QueryString(hKey, "lfFaceName", Globals.lfFont.lfFaceName, sizeof(Globals.lfFont.lfFaceName) / sizeof(Globals.lfFont.lfFaceName[0])); QueryByte(hKey, "lfItalic", &Globals.lfFont.lfItalic); - QueryDword(hKey, "lfOrientation", &Globals.lfFont.lfOrientation); + QueryDword(hKey, "lfOrientation", (DWORD*)&Globals.lfFont.lfOrientation); QueryByte(hKey, "lfOutPrecision", &Globals.lfFont.lfOutPrecision); QueryByte(hKey, "lfPitchAndFamily", &Globals.lfFont.lfPitchAndFamily); QueryByte(hKey, "lfQuality", &Globals.lfFont.lfQuality); QueryByte(hKey, "lfStrikeOut", &Globals.lfFont.lfStrikeOut); QueryByte(hKey, "lfUnderline", &Globals.lfFont.lfUnderline); - QueryDword(hKey, "lfWeight", &Globals.lfFont.lfWeight); + QueryDword(hKey, "lfWeight", (DWORD*)&Globals.lfFont.lfWeight); QueryDword(hKey, "iPointSize", &dwPointSize); if (dwPointSize != 0)