Get rid of a couple of non-portable long long constants.

This commit is contained in:
Alexandre Julliard 2005-09-13 11:26:36 +00:00
parent 1cdffb26c9
commit 903e0b9fc5
3 changed files with 6 additions and 12 deletions

View File

@ -238,8 +238,6 @@ typedef struct tagMSIPREVIEW
#define MSIHANDLE_MAGIC 0x4d434923
#define MSIMAXHANDLES 0xf0
#define MSISUMINFO_OFFSET 0x30LL
DEFINE_GUID(CLSID_IMsiServer, 0x000C101C,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
DEFINE_GUID(CLSID_IMsiServerX1, 0x000C103E,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);
DEFINE_GUID(CLSID_IMsiServerX2, 0x000C1090,0x0000,0x0000,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46);

View File

@ -106,7 +106,7 @@ static SYSTEMTIME lazy_timeout_time;
filetime.dwHighDateTime = ularge.HighPart )
#endif /* NONAMELESSSTRUCT */
#define TEN_MIL 10000000LL
#define TEN_MIL ((ULONGLONG)10000000)
/* returns time remaining in seconds */
long RPCSS_GetLazyTimeRemaining(void)

View File

@ -205,17 +205,13 @@ void ProcessPageOnNotify(WPARAM wParam, LPARAM lParam)
DWORD dwHours;
DWORD dwMinutes;
DWORD dwSeconds;
ULONGLONG secs;
time = PerfDataGetCPUTime(Index);
#ifdef _MSC_VER
dwHours = (DWORD)(time.QuadPart / 36000000000L);
dwMinutes = (DWORD)((time.QuadPart % 36000000000L) / 600000000L);
dwSeconds = (DWORD)(((time.QuadPart % 36000000000L) % 600000000L) / 10000000L);
#else
dwHours = (DWORD)(time.QuadPart / 36000000000LL);
dwMinutes = (DWORD)((time.QuadPart % 36000000000LL) / 600000000LL);
dwSeconds = (DWORD)(((time.QuadPart % 36000000000LL) % 600000000LL) / 10000000LL);
#endif
secs = time.QuadPart / 10000000;
dwHours = secs / 3600;
dwMinutes = (secs % 3600) / 60;
dwSeconds = (secs % 3600) % 60;
wsprintf(pnmdi->item.pszText, _T("%d:%02d:%02d"), dwHours, dwMinutes, dwSeconds);
}
if (ColumnDataHints[ColumnIndex] == COLUMN_MEMORYUSAGE)