Commit 903e0b9f authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 1cdffb26
......@@ -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);
......
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment