aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMain.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index bdc854fc..4c91336d 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -418,12 +418,12 @@ static void T##_Delete(void *ptr) { al_free(ptr); }
} \
} while(0)
-#define NEW_OBJ(_ptr, T) do { \
- _ptr = T##_New(sizeof(*_ptr)); \
- if(_ptr) \
+#define NEW_OBJ(_res, T) do { \
+ _res = T##_New(sizeof(T)); \
+ if(_res) \
{ \
- memset(_ptr, 0, sizeof(*_ptr)); \
- T##_Construct(_ptr, EXTRACT_NEW_ARGS
+ memset(_res, 0, sizeof(T)); \
+ T##_Construct(_res, EXTRACT_NEW_ARGS
#ifdef __cplusplus