From: Alex Henrie alexhenrie24@gmail.com
--- dlls/msvcp60/ios.c | 2 +- dlls/msvcp60/main.c | 2 +- dlls/msvcp60/msvcp.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/msvcp60/ios.c b/dlls/msvcp60/ios.c index e54161a1d3c..b94dba86062 100644 --- a/dlls/msvcp60/ios.c +++ b/dlls/msvcp60/ios.c @@ -279,7 +279,7 @@ typedef struct { char *seekhigh; streamsize minsize; int strmode; - void* (__cdecl *palloc)(size_t); + void* (__cdecl __WINE_ALLOC_SIZE(1) *palloc)(size_t); void (__cdecl *pfree)(void*); } strstreambuf;
diff --git a/dlls/msvcp60/main.c b/dlls/msvcp60/main.c index 5d1894cb073..001dd64d0e2 100644 --- a/dlls/msvcp60/main.c +++ b/dlls/msvcp60/main.c @@ -58,7 +58,7 @@ DEFINE_VTBL_WRAPPER(56); /* ?_Fpz@std@@3_JB */ const __int64 std_Fpz = 0;
-static void* (__cdecl *MSVCRT_operator_new)(size_t); +static void* (__cdecl __WINE_ALLOC_SIZE(1) *MSVCRT_operator_new)(size_t); static void (__cdecl *MSVCRT_operator_delete)(void*); void* (__cdecl *MSVCRT_set_new_handler)(void*);
diff --git a/dlls/msvcp60/msvcp.h b/dlls/msvcp60/msvcp.h index 0a9ee7f11c1..2eb220745ae 100644 --- a/dlls/msvcp60/msvcp.h +++ b/dlls/msvcp60/msvcp.h @@ -30,8 +30,8 @@ void __cdecl _invalid_parameter(const wchar_t*, const wchar_t*, const wchar_t*, unsigned int, uintptr_t); BOOL __cdecl __uncaught_exception(void);
-void* __cdecl operator_new(size_t); void __cdecl operator_delete(void*); +void* __cdecl operator_new(size_t) __WINE_ALLOC_SIZE(1) __WINE_DEALLOC(operator_delete) __WINE_MALLOC;
/* basic_string<char, char_traits<char>, allocator<char>> */ typedef struct @@ -71,8 +71,8 @@ void __thiscall MSVCP_basic_string_wchar_clear(basic_string_wchar*); basic_string_wchar* __thiscall MSVCP_basic_string_wchar_append_ch(basic_string_wchar*, wchar_t); size_t __thiscall MSVCP_basic_string_wchar_length(const basic_string_wchar*);
-char* __thiscall MSVCP_allocator_char_allocate(void*, size_t); void __thiscall MSVCP_allocator_char_deallocate(void*, char*, size_t); +char* __thiscall MSVCP_allocator_char_allocate(void*, size_t) __WINE_ALLOC_SIZE(2) __WINE_DEALLOC(MSVCP_allocator_char_deallocate, 2); size_t __thiscall MSVCP_allocator_char_max_size(const void*); wchar_t* __thiscall MSVCP_allocator_wchar_allocate(void*, size_t); void __thiscall MSVCP_allocator_wchar_deallocate(void*, wchar_t*, size_t);