--- np2/win9x/debuguty/viewer.cpp 2005/03/19 20:46:07 1.7 +++ np2/win9x/debuguty/viewer.cpp 2007/01/08 08:52:22 1.9 @@ -12,7 +12,7 @@ static const TCHAR np2viewclass[] = _T( extern HINSTANCE hInst; -static void viewer_segmode(HWND hwnd, BYTE type) { +static void viewer_segmode(HWND hwnd, UINT8 type) { NP2VIEW_T *view; @@ -106,7 +106,7 @@ LRESULT CALLBACK ViewProc(HWND hWnd, UIN if (view) { RECT rc; GetClientRect(hWnd, &rc); - view->step = rc.bottom / 16; + view->step = (UINT16)(rc.bottom / 16); viewcmn_setvscroll(hWnd, view); } break; @@ -114,7 +114,7 @@ LRESULT CALLBACK ViewProc(HWND hWnd, UIN case WM_VSCROLL: view = viewcmn_find(hWnd); if (view) { - DWORD newpos = view->pos; + UINT32 newpos = view->pos; switch(LOWORD(wParam)) { case SB_LINEUP: if (newpos) { @@ -226,7 +226,7 @@ void viewer_open(void) { view = np2view; for (i=0; ialive) { - OEMCHAR buf[256]; + TCHAR buf[256]; viewcmn_caption(view, buf); ZeroMemory(view, sizeof(NP2VIEW_T)); view->alive = TRUE; @@ -263,8 +263,8 @@ void viewer_allclose(void) { void viewer_allreload(BOOL force) { -static DWORD last = 0; - DWORD now; +static UINT32 last = 0; + UINT32 now; now = GetTickCount(); if ((force) || ((now - last) >= 200)) {