[ros-diffs] [greatlrd] 20325: fixing 20 VS waring msg

greatlrd at svn.reactos.com greatlrd at svn.reactos.com
Sun Dec 25 03:05:57 CET 2005


fixing 20 VS waring msg
Modified: trunk/reactos/subsys/system/calc/dialog.c
Modified: trunk/reactos/subsys/system/calc/stats.c
  _____  

Modified: trunk/reactos/subsys/system/calc/dialog.c
--- trunk/reactos/subsys/system/calc/dialog.c	2005-12-24 23:24:40 UTC
(rev 20324)
+++ trunk/reactos/subsys/system/calc/dialog.c	2005-12-25 02:05:50 UTC
(rev 20325)
@@ -72,11 +72,11 @@

 
         SetBkMode(hdc, TRANSPARENT);
 
-        TextOut(hdc, 10, 10, c1, _tcslen(c1));
-        TextOut(hdc, 10, 35, c2, _tcslen(c2));
-        TextOut(hdc, 10, 50, c3, _tcslen(c3));
-        TextOut(hdc, 10, 75, c4, _tcslen(c4));
-        TextOut(hdc, 10, 90, c5, _tcslen(c5));
+        TextOut(hdc, 10, 10, c1, (INT) _tcslen(c1));
+        TextOut(hdc, 10, 35, c2, (INT) _tcslen(c2));
+        TextOut(hdc, 10, 50, c3, (INT) _tcslen(c3));
+        TextOut(hdc, 10, 75, c4, (INT) _tcslen(c4));
+        TextOut(hdc, 10, 90, c5, (INT) _tcslen(c5));
 
         SelectObject(hdc, hFontOrg);
 
  _____  

Modified: trunk/reactos/subsys/system/calc/stats.c
--- trunk/reactos/subsys/system/calc/stats.c	2005-12-24 23:24:40 UTC
(rev 20324)
+++ trunk/reactos/subsys/system/calc/stats.c	2005-12-25 02:05:50 UTC
(rev 20325)
@@ -72,23 +72,23 @@

 
 		case ID_STATS_LOAD:
 			{
-			   int i;
+			   INT i;
 
-			   i = SendMessage(hWndListBox, LB_GETCURSEL, 0,
0);
-                           SendMessage(hWndListBox, LB_GETTEXT,   i,
(LPARAM)calc.buffer);
+			   i = (INT) SendMessage(hWndListBox,
LB_GETCURSEL, 0, 0);
+               SendMessage(hWndListBox, LB_GETTEXT,   i,
(LPARAM)calc.buffer);
 			   calc_buffer_display(&calc);
-                        }
+             }
             return 0;
 
 		case ID_STATS_CD:
 			{
-			   int i;
+			   INT i;
 
-			   i = SendMessage(hWndListBox, LB_GETCURSEL, 0,
0);
-                           SendMessage(hWndListBox, LB_DELETESTRING, i,
0);
-                           InvalidateRect(hDlg,NULL,TRUE);
+			   i = (INT) SendMessage(hWndListBox,
LB_GETCURSEL, 0, 0);
+               SendMessage(hWndListBox, LB_DELETESTRING, i, 0);
+               InvalidateRect(hDlg,NULL,TRUE);
 			   UpdateWindow(hDlg);
-                        }
+             }
 			return 0;
 
 		case ID_STATS_CAD:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051225/a9c9469f/attachment.html


More information about the Ros-diffs mailing list