Author: cwittich
Date: Sat Jul 8 20:45:13 2006
New Revision: 22924
URL:
http://svn.reactos.org/svn/reactos?rev=22924&view=rev
Log:
-fixed some msvc /W4 warnings
Modified:
trunk/reactos/dll/cpl/timedate/dateandtime.c
trunk/reactos/dll/cpl/timedate/monthcal.c
trunk/reactos/dll/cpl/timedate/timedate.c
Modified: trunk/reactos/dll/cpl/timedate/dateandtime.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/timedate/dateandti…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/dateandtime.c (original)
+++ trunk/reactos/dll/cpl/timedate/dateandtime.c Sat Jul 8 20:45:13 2006
@@ -289,7 +289,7 @@
SendMessage(GetDlgItem(hwndDlg, IDC_YEAR), UDM_SETRANGE, 0, MAKELONG ((short)
9999, (short) 1900));
SendMessage(GetDlgItem(hwndDlg, IDC_YEAR), UDM_SETPOS, 0, MAKELONG( (short)
st.wYear, 0));
- pOldWndProc = (WNDPROC) SetWindowLong(GetDlgItem(hwndDlg, IDC_TIMEPICKER),
GWL_WNDPROC, (INT_PTR) DTPProc);
+ pOldWndProc = (WNDPROC) SetWindowLongPtr(GetDlgItem(hwndDlg, IDC_TIMEPICKER),
GWL_WNDPROC, (INT_PTR) DTPProc);
}
break;
@@ -322,7 +322,7 @@
case WM_CTLCOLORSTATIC:
{
if ((HWND) lParam == GetDlgItem(hwndDlg, IDC_YEARTEXT))
- return (int) GetSysColorBrush(COLOR_WINDOW);
+ return (INT_PTR) GetSysColorBrush(COLOR_WINDOW);
}
break;
Modified: trunk/reactos/dll/cpl/timedate/monthcal.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/timedate/monthcal.…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/monthcal.c (original)
+++ trunk/reactos/dll/cpl/timedate/monthcal.c Sat Jul 8 20:45:13 2006
@@ -237,7 +237,7 @@
TCHAR szBuf[64];
UINT i;
- infoPtr->UIState = SendMessage(GetAncestor(infoPtr->hSelf,
+ infoPtr->UIState = (DWORD) SendMessage(GetAncestor(infoPtr->hSelf,
GA_PARENT),
WM_QUERYUISTATE,
0,
@@ -439,7 +439,7 @@
IN HDC hDC,
IN LPRECT prcUpdate)
{
- UINT x, y;
+ LONG x, y;
RECT rcCell;
COLORREF crOldText, crOldCtrlText = CLR_INVALID;
HFONT hOldFont;
@@ -993,7 +993,7 @@
{
if (wParam == GWL_STYLE)
{
- BOOL OldEnabled = infoPtr->Enabled;
+ unsigned int OldEnabled = infoPtr->Enabled;
infoPtr->Enabled = !(((LPSTYLESTRUCT)lParam)->styleNew &
WS_DISABLED);
if (OldEnabled != infoPtr->Enabled)
Modified: trunk/reactos/dll/cpl/timedate/timedate.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/timedate/timedate.…
==============================================================================
--- trunk/reactos/dll/cpl/timedate/timedate.c (original)
+++ trunk/reactos/dll/cpl/timedate/timedate.c Sat Jul 8 20:45:13 2006
@@ -135,7 +135,7 @@
}
-BOOL STDCALL
+BOOL WINAPI
DllMain(HINSTANCE hinstDLL,
DWORD dwReason,
LPVOID lpReserved)