Windows: rk_wcsdup allocator
patchset 3fe5572840 should have
replaced wcsdup().
Change-Id: Ib1e09477b430525267c6c930d7c4ab29858a68bb
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#undef malloc
|
||||
#undef free
|
||||
#undef strdup
|
||||
#undef wcsdup
|
||||
|
||||
/*
|
||||
* Windows executables and dlls suffer when memory is
|
||||
@@ -67,3 +68,9 @@ rk_strdup(const char *str)
|
||||
{
|
||||
return strdup( str);
|
||||
}
|
||||
|
||||
ROKEN_LIB_FUNCTION unsigned short * ROKEN_LIB_CALL
|
||||
rk_wcsdup(const unsigned short *str)
|
||||
{
|
||||
return wcsdup( str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user