[ros-diffs] [weiden] 18167: fixed pointer types differ in signedness warnings

weiden at svn.reactos.com weiden at svn.reactos.com
Fri Sep 30 13:58:07 CEST 2005


fixed pointer types differ in signedness warnings
Modified: trunk/reactos/subsys/system/notepad/settings.c
  _____  

Modified: trunk/reactos/subsys/system/notepad/settings.c
--- trunk/reactos/subsys/system/notepad/settings.c	2005-09-30
11:25:32 UTC (rev 18166)
+++ trunk/reactos/subsys/system/notepad/settings.c	2005-09-30
11:57:49 UTC (rev 18167)
@@ -132,16 +132,16 @@

 	{
 		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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050930/393a1d5e/attachment.html


More information about the Ros-diffs mailing list