|
|
@@ -71,12 +71,12 @@
|
|
|
#define UTF8_TO_UNICODE_STACK_MACRO(w_assignto, str) { \
|
|
|
if (str == NULL) \
|
|
|
w_assignto = NULL; \
|
|
|
- else { \
|
|
|
+ else { \
|
|
|
const PHYSFS_uint64 len = (PHYSFS_uint64) ((strlen(str) + 1) * 2); \
|
|
|
w_assignto = (WCHAR *) __PHYSFS_smallAlloc(len); \
|
|
|
if (w_assignto != NULL) \
|
|
|
PHYSFS_utf8ToUtf16(str, (PHYSFS_uint16 *) w_assignto, len); \
|
|
|
- } \
|
|
|
+ } \
|
|
|
} \
|
|
|
|
|
|
/* Note this counts WCHARs, not codepoints! */
|