Fix warnings/errors in 64bit build.

svn path=/branches/ros-amd64-bringup/; revision=36174
This commit is contained in:
Samuel Serapion
2008-09-13 02:00:44 +00:00
parent 2c8d1577ee
commit 72adb4a0af
+3 -3
View File
@@ -88,7 +88,7 @@ static void SidToUserName(PSID Sid, LPWSTR szBuffer, DWORD BufferSize)
void PerfDataRefresh(void)
{
SIZE_T ulSize;
ULONG ulSize;
NTSTATUS status;
LPBYTE pBuffer;
ULONG BufferSize;
@@ -393,7 +393,7 @@ int PerfGetIndexByProcessId(DWORD dwProcessId)
for (Index = 0; Index < ProcessCount; Index++)
{
if ((DWORD)pPerfData[Index].ProcessId == dwProcessId)
if (PtrToUlong(pPerfData[Index].ProcessId) == dwProcessId)
{
FoundIndex = Index;
break;
@@ -412,7 +412,7 @@ ULONG PerfDataGetProcessId(ULONG Index)
EnterCriticalSection(&PerfDataCriticalSection);
if (Index < ProcessCount)
ProcessId = (ULONG)pPerfData[Index].ProcessId;
ProcessId = PtrToUlong(pPerfData[Index].ProcessId);
else
ProcessId = 0;