diff options
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;
}
|