fix C macro that lead to memory corruption!
svn: r6148
This commit is contained in:
parent
4744c559b0
commit
52bbd95ba7
|
@ -79,7 +79,7 @@ static void memmove(char *dest, char *src, long size)
|
|||
extern void *wxMallocAtomicIfPossible(size_t s);
|
||||
|
||||
#define STRALLOC(n) new WXGC_ATOMIC wxchar[n]
|
||||
#define TRY_STRALLOC(n) (wxchar *)wxMallocAtomicIfPossible(n * sizeof(wxchar))
|
||||
#define TRY_STRALLOC(n) (wxchar *)wxMallocAtomicIfPossible((n) * sizeof(wxchar))
|
||||
#define STRFREE(s) /* empty */
|
||||
|
||||
wxchar wx_empty_wxstr[1] = {0};
|
||||
|
|
Loading…
Reference in New Issue
Block a user