Changeset 1533
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/dirsize.c
r1505 r1533 331 331 if (pci) { 332 332 333 float fltPct = 0.0;333 float fltPct = (float) 0.0; 334 334 CHAR szCurDir[80]; 335 335 CHAR szSubDir[80]; … … 356 356 sizeof(FSALLOCATE)); 357 357 if (!rc) { 358 fltPct = ( ullTotalBytes * 100.0) /359 ((float)fsa.cUnit * (fsa.cSectorUnit * fsa.cbSector));358 fltPct = (float) (ullTotalBytes * 100.0) / 359 ((float)fsa.cUnit * (fsa.cSectorUnit * fsa.cbSector)); 360 360 } 361 361 // Need unique buffer 23 Jul 07 SHL … … 363 363 } 364 364 else 365 fltPct = ( ((float)pci->cbFile + pci->easize) * 100.0) / ullTotalBytes;365 fltPct = (float) (((float)pci->cbFile + pci->easize) * 100.0) / ullTotalBytes; 366 366 367 367 //Second line for graph reworked 03 AUG 08 GKY -
trunk/dll/draglist.c
r1521 r1533 330 330 pDImg->sizlStretch.cx = 32; 331 331 pDImg->sizlStretch.cy = 32; 332 pDImg->cxOffset = -16 + ( ulNumfiles * 4);333 pDImg->cyOffset = 0 + ( ulNumfiles * 7);332 pDImg->cxOffset = -16 + ((SHORT) ulNumfiles * 4); 333 pDImg->cyOffset = 0 + ((SHORT) ulNumfiles * 7); 334 334 ulNumIcon = ulNumfiles + 1; 335 335 } … … 357 357 pDImg->sizlStretch.cx = 32; 358 358 pDImg->sizlStretch.cy = 32; 359 pDImg->cxOffset = -16 + ( ulNumfiles * 3);360 pDImg->cyOffset = 0 + ( ulNumfiles * 6);359 pDImg->cxOffset = -16 + ((SHORT) ulNumfiles * 3); 360 pDImg->cyOffset = 0 + ((SHORT) ulNumfiles * 6); 361 361 } 362 362 pDItem->hwndItem = (hwndObj) ? hwndObj : hwndCnr; … … 660 660 pDImg->sizlStretch.cx = 32; 661 661 pDImg->sizlStretch.cy = 32; 662 pDImg->cxOffset = -16 + ( ulNumfiles * 4);663 pDImg->cyOffset = 0 + ( ulNumfiles * 7);662 pDImg->cxOffset = -16 + ((SHORT) ulNumfiles * 4); 663 pDImg->cyOffset = 0 + ((SHORT) ulNumfiles * 7); 664 664 ulNumIcon = ulNumfiles + 1; 665 665 } … … 685 685 pDImg->sizlStretch.cx = 32; 686 686 pDImg->sizlStretch.cy = 32; 687 pDImg->cxOffset = -16 + ( ulNumfiles * 3);688 pDImg->cyOffset = 0 + ( ulNumfiles * 6);687 pDImg->cxOffset = -16 + ((SHORT) ulNumfiles * 3); 688 pDImg->cyOffset = 0 + ((SHORT) ulNumfiles * 6); 689 689 } 690 690 pDItem->hwndItem = (hwndObj) ? hwndObj : hwnd; -
trunk/dll/excputil.c
r1442 r1533 247 247 else { 248 248 is32Bit = FALSE; 249 u.stk16.usIP = pContext->ctx_RegEip;250 u.stk16.usBP = pContext->ctx_RegEbp;249 u.stk16.usIP = (SHORT) pContext->ctx_RegEip; 250 u.stk16.usBP = (SHORT) pContext->ctx_RegEbp; 251 251 } 252 252 -
trunk/dll/info.c
r1498 r1533 252 252 253 253 percentfree = (fsa.cUnitAvail && fsa.cUnit) ? 254 ( fsa.cUnitAvail * 100) /fsa.cUnit : 0;254 ((USHORT) fsa.cUnitAvail * 100) / (USHORT) fsa.cUnit : 0; 255 255 if (!percentfree && fsa.cUnitAvail) 256 256 percentfree = 1; -
trunk/dll/mainwnd.c
r1506 r1533 1967 1967 *szDrv = 0; 1968 1968 x = id - IDM_DRIVEA; 1969 *szDrv = x + 'A';1969 *szDrv = (CHAR) x + 'A'; 1970 1970 strcpy(szDrv + 1, ":"); 1971 1971 if (x > 1) { … … 3665 3665 WinSetWindowUShort(hwndChild, 3666 3666 QWS_XRESTORE, 3667 (USHORT) (ulWidth * ulCurCol) + Rectl.xLeft); 3667 (USHORT) ((USHORT) ulWidth * (USHORT) ulCurCol) 3668 + (USHORT) Rectl.xLeft); 3668 3669 WinSetWindowUShort(hwndChild, 3669 3670 QWS_YRESTORE, … … 3754 3755 WinSetWindowPos(hwndChild, HWND_TOP, 0, 0, 0, 0, 3755 3756 SWP_SIZE | SWP_MOVE | SWP_FOCUSDEACTIVATE); 3756 WinSetWindowUShort(hwndChild, QWS_XRESTORE, ux);3757 WinSetWindowUShort(hwndChild, QWS_YRESTORE, uy);3758 WinSetWindowUShort(hwndChild, QWS_CXRESTORE, ucx);3759 WinSetWindowUShort(hwndChild, QWS_CYRESTORE, ucy);3757 WinSetWindowUShort(hwndChild, QWS_XRESTORE, (USHORT) ux); 3758 WinSetWindowUShort(hwndChild, QWS_YRESTORE, (USHORT) uy); 3759 WinSetWindowUShort(hwndChild, QWS_CXRESTORE, (USHORT) ucx); 3760 WinSetWindowUShort(hwndChild, QWS_CYRESTORE, (USHORT) ucy); 3760 3761 } 3761 3762 else { … … 3763 3764 WinSetWindowPos(hwndChild, HWND_TOP, swp.x, swp.y, swp.cx, swp.cy, 3764 3765 SWP_MOVE | SWP_SIZE | SWP_SHOW); 3765 WinSetWindowUShort(hwndChild, QWS_XRESTORE, ux);3766 WinSetWindowUShort(hwndChild, QWS_YRESTORE, uy);3767 WinSetWindowUShort(hwndChild, QWS_CXRESTORE, ucx);3768 WinSetWindowUShort(hwndChild, QWS_CYRESTORE, ucy);3766 WinSetWindowUShort(hwndChild, QWS_XRESTORE, (USHORT) ux); 3767 WinSetWindowUShort(hwndChild, QWS_YRESTORE, (USHORT) uy); 3768 WinSetWindowUShort(hwndChild, QWS_CXRESTORE, (USHORT) ucx); 3769 WinSetWindowUShort(hwndChild, QWS_CYRESTORE, (USHORT) ucy); 3769 3770 } 3770 3771 } -
trunk/dll/misc.c
r1505 r1533 1355 1355 (((info->HotKeyID - IDM_COMMANDNUM0) % 10) + 1) == 10 ? 0 : 1356 1356 ((info->HotKeyID - IDM_COMMANDNUM0) % 10) + 1); 1357 mi.id = info->ID;1357 mi.id = (USHORT) info->ID; 1358 1358 mi.afAttribute = (info->flags & ONCE ? MIA_CHECKED : 0) | 1359 1359 (info->flags & PROMPT ? MIA_FRAMED : 0); -
trunk/dll/newview.c
r1498 r1533 2293 2293 WinSendMsg(hwnd, WM_VSCROLL, MPFROM2SHORT(FID_VERTSCROLL, 0), 2294 2294 MPFROM2SHORT(0, SB_LINEUP)); 2295 pts.y = ( Rectl.yTop - Rectl.yBottom) - 1;2295 pts.y = (SHORT) (Rectl.yTop - Rectl.yBottom) - 1; 2296 2296 outofwindow = TRUE; 2297 2297 } -
trunk/dll/seeall.c
r1498 r1533 3180 3180 WinSendMsg(hwnd, WM_VSCROLL, MPFROM2SHORT(FID_VERTSCROLL, 0), 3181 3181 MPFROM2SHORT(0, SB_LINEUP)); 3182 pts.y = ( Rectl.yTop - Rectl.yBottom) - 1;3182 pts.y = (SHORT) (Rectl.yTop - Rectl.yBottom) - 1; 3183 3183 outofwindow = TRUE; 3184 3184 } -
trunk/dll/systemf.c
r1505 r1533 1197 1197 sdata.Environment = (PBYTE)pszEnvironment; 1198 1198 sdata.InheritOpt = SSF_INHERTOPT_PARENT; 1199 sdata.SessionType = ulAppType;1199 sdata.SessionType = (USHORT) ulAppType; 1200 1200 sdata.ObjectBuffer = szObject; 1201 1201 sdata.ObjectBuffLen = sizeof(szObject); -
trunk/dll/treecnr.c
r1513 r1533 657 657 ShowTreeRec(dcd->hwndCnr, (CHAR *)mp1, fCollapseFirst, TRUE); 658 658 PostMsg(hwndTree, WM_COMMAND, MPFROM2SHORT(IDM_UPDATE, 0), MPVOID); 659 dcd->suspendview = tempsusp;659 dcd->suspendview = (USHORT) tempsusp; 660 660 fFollowTree = tempfollow; 661 661 if (mp2) … … 701 701 ExpandAll(dcd->hwndCnr, 702 702 (SHORT1FROMMP(mp1) == IDM_EXPAND), (PCNRITEM) mp2); 703 dcd->suspendview = tempsusp;703 dcd->suspendview = (USHORT) tempsusp; 704 704 PostMsg(dcd->hwndCnr, UM_FILTER, MPVOID, MPVOID); 705 705 } … … 2329 2329 dcd->mask.attrFile |= FILE_DIRECTORY; 2330 2330 WinSendMsg(hwnd, CM_FILTER, MPFROMP(Filter), MPFROMP(&dcd->mask)); 2331 dcd->suspendview = tempsusp;2331 dcd->suspendview = (USHORT) tempsusp; 2332 2332 PostMsg(hwnd, UM_RESCAN, MPVOID, MPVOID); 2333 2333 //DbgMsg(pszSrcFile, __LINE__, "UM_RESCAN %p pci %s", hwnd, (CHAR *) mp1);
Note:
See TracChangeset
for help on using the changeset viewer.