summaryrefslogtreecommitdiff
path: root/plugins/Updater/allocations.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Updater/allocations.h')
-rw-r--r--plugins/Updater/allocations.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Updater/allocations.h b/plugins/Updater/allocations.h
index 719b42383a..25d98c21f7 100644
--- a/plugins/Updater/allocations.h
+++ b/plugins/Updater/allocations.h
@@ -53,11 +53,9 @@ __inline static wchar_t *safe_wstrdup(const wchar_t *s) {
return ret;
}
-#ifdef _UNICODE
+
#define safe_tstrdup(x) safe_wstrdup(x)
-#else
-#define sage_tstrdup(x) safe_strdup(x)
-#endif
+
__inline static BYTE *safe_bytedup(BYTE *bytes, int size) {
if (!bytes || size == 0) return 0;