diff options
Diffstat (limited to 'tests/un/win_wstr.c')
-rw-r--r-- | tests/un/win_wstr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/un/win_wstr.c b/tests/un/win_wstr.c index 55cec57..51fc820 100644 --- a/tests/un/win_wstr.c +++ b/tests/un/win_wstr.c @@ -10,11 +10,13 @@ int main(void) { int main(void) { wchar *caption, *text; - Allocator talloc = un_allocator_get_temporary(); + un_alloc_temp_init(UN_KB(4)); - caption = un_wstring_from_cstring(UN_CSTR "Внимание", talloc); - text = un_wstring_from_cstring(UN_CSTR "Тестовое сообщение", talloc); + Allocator talloc = un_alloc_temp_get(); + + caption = un_wstring_from_cstring((u8 *)"Внимание", talloc); + text = un_wstring_from_cstring((u8 *)"Тестовое сообщение", talloc); assert(caption != NULL); |