+/*
+ * Copyright 2000, International Business Machines Corporation and others.
+ * All Rights Reserved.
+ *
+ * This software has been released under the terms of the IBM Public
+ * License. For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
+ */
#ifndef DEBUG
#define DEBUG
void MemMgr_ShowWarning (PMEMCHUNK pChunk, LPSTR pszFile, DWORD dwLine, LPTSTR pszDesc)
{
TCHAR szMessage[ 1024 ];
- wsprintf (szMessage, TEXT("%s\n\n Address: 0x%08lX (%s)\n Allocated: %s line %ld\n Freed: %s line %ld\n\nClick OK for memory details."), pszDesc, pChunk->pData, pChunk->pszExpr, pChunk->pszFile, pChunk->dwLine, pszFile, dwLine);
+ wsprintf (szMessage, TEXT("%s\n\n Address: 0x%08lX (%s)\n Allocated: %s line %ld\n Freed: %s line %ld\n\nClick OK for memory details."), pszDesc, (long)pChunk->pData, pChunk->pszExpr, pChunk->pszFile, pChunk->dwLine, pszFile, dwLine);
if (MessageBox (NULL, szMessage, cszTITLE, MB_ICONHAND | MB_OKCANCEL | MB_DEFBUTTON2) == IDOK)
{
// TODO: Show Details
wsprintf (szLocation, TEXT("%s, %ld"), pszFile, pCopy->dwLine);
TCHAR szBytes[256];
- FormatBytes (szBytes, pCopy->cbData);
+ FormatBytes (szBytes, (double)pCopy->cbData);
TCHAR szAddress[256];
- wsprintf (szAddress, TEXT("0x%08lX"), pCopy->pData);
+ wsprintf (szAddress, TEXT("0x%08lX"), (long)pCopy->pData);
LPTSTR pszKey = NULL;
switch (lr.iColSort)