msvcrtd: Use size_t instead of unsigned long.

oldstable
Michael Stefaniuc 2009-05-27 11:36:50 +02:00 committed by Alexandre Julliard
parent 23e70e00ed
commit 37a62a643e
2 changed files with 10 additions and 7 deletions

View File

@ -31,16 +31,19 @@ int _crtAssertBusy = -1;
int _crtBreakAlloc = -1;
int _crtDbgFlag = 0;
extern int _callnewh(unsigned long);
#ifdef _WIN64
typedef unsigned __int64 MSVCRT_size_t;
#else
typedef unsigned long MSVCRT_size_t;
#endif
extern int _callnewh(MSVCRT_size_t);
/*********************************************************************
* ??2@YAPAXIHPBDH@Z (MSVCRTD.@)
*/
void * CDECL MSVCRTD_operator_new_dbg(
unsigned long nSize,
int nBlockUse,
const char *szFileName,
int nLine)
void * CDECL MSVCRTD_operator_new_dbg(MSVCRT_size_t nSize, int nBlockUse,
const char *szFileName, int nLine)
{
void *retval = NULL;

View File

@ -30,7 +30,7 @@
/**********************************************************************/
static void * (*pMSVCRTD_operator_new_dbg)(unsigned long, int, const char *, int) = NULL;
static void * (*pMSVCRTD_operator_new_dbg)(size_t, int, const char *, int) = NULL;
/* Some exports are only available in later versions */
#define SETNOFAIL(x,y) x = (void*)GetProcAddress(hModule,y)