From 166877cf15f6afa89c9f8a61e267d485868d0ee1 Mon Sep 17 00:00:00 2001 From: bonmas14 Date: Thu, 25 Sep 2025 14:17:07 +0300 Subject: +disgrace and rework of ungrateful.h --- tests/un/win_wstr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/un/win_wstr.c') 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); -- cgit v1.2.3-70-g09d2