Merge pull request #613 from mfleisz/master

libfreerdp-utils: Fixed missing wcsdup on Android
This commit is contained in:
Vic Lee 2012-05-24 19:45:21 -07:00
commit e63de0e115

View File

@ -171,7 +171,7 @@ wchar_t* xwcsdup(const wchar_t* wstr)
mem = _wcsdup(wstr);
#elif sun
mem = wsdup(wstr);
#elif defined(__APPLE__) && defined(__MACH__)
#elif (defined(__APPLE__) && defined(__MACH__)) || defined(ANDROID)
mem = xmalloc(wcslen(wstr));
if (mem != NULL)
wcscpy(mem, wstr);