diff --git a/src/platform/windows/windows_events.c b/src/platform/windows/windows_events.c index a1e813f25..8bf3034bb 100644 --- a/src/platform/windows/windows_events.c +++ b/src/platform/windows/windows_events.c @@ -167,7 +167,7 @@ LCUI_AppDriver LCUI_CreateWinAppDriver( void ) wndclass.hCursor = LoadCursor( NULL, IDC_ARROW ); wndclass.hIcon = LoadIcon( win.dll_instance, MAKEINTRESOURCE( IDI_LCUI_ICON ) ); - if( !RegisterClass( &wndclass ) ) { + if( !RegisterClassW( &wndclass ) ) { wchar_t str[256]; swprintf( str, 255, __FUNCTIONW__ L": error code: %d\n", GetLastError() );