From 8f5a7b54eb953bbfc877ec915e26b3a95ec28d00 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Sun, 21 Feb 2010 23:00:56 +0000 Subject: New updater with 3x reduced footprint and fully W7 and x64 compatible git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@476 4f64403b-2f21-0410-a795-97e2b3489a10 --- updater/allocations.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'updater/allocations.h') diff --git a/updater/allocations.h b/updater/allocations.h index ee9127a..842d7da 100644 --- a/updater/allocations.h +++ b/updater/allocations.h @@ -32,7 +32,7 @@ protected: extern Allocations allocations; -__inline static void *safe_alloc(int bytes) { +__inline static void *safe_alloc(size_t bytes) { if(bytes == 0) return 0; void *ret = malloc(bytes); allocations.push_back(ret); @@ -48,7 +48,7 @@ __inline static char *safe_strdup(const char *s) { __inline static wchar_t *safe_wstrdup(const wchar_t *s) { if(!s) return 0; - wchar_t *ret = wcsdup(s); + wchar_t *ret = _wcsdup(s); allocations.push_back(ret); return ret; } -- cgit v1.2.3