fixing 20 VS waring msg
authorMagnus Olsen <magnus@greatlord.com>
Sun, 25 Dec 2005 02:05:50 +0000 (02:05 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Sun, 25 Dec 2005 02:05:50 +0000 (02:05 +0000)
svn path=/trunk/; revision=20325

reactos/subsys/system/calc/dialog.c
reactos/subsys/system/calc/stats.c

index 981b63d..e032a7d 100644 (file)
@@ -72,11 +72,11 @@ BOOL CALLBACK AboutDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam )
 
         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);
 
index 8750577..32b029c 100644 (file)
@@ -72,23 +72,23 @@ BOOL CALLBACK StatsDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam )
 
                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: