diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-02-21 23:00:56 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-02-21 23:00:56 +0000 |
commit | 8f5a7b54eb953bbfc877ec915e26b3a95ec28d00 (patch) | |
tree | 827e40ab3528e10afd6fcb44f7ed5db0d7eed519 /updater/allocations.h | |
parent | b130e8caa16961f597ae4ac6984a6aa00de7b6c7 (diff) |
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
Diffstat (limited to 'updater/allocations.h')
-rw-r--r-- | updater/allocations.h | 4 |
1 files changed, 2 insertions, 2 deletions
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;
}
|