Commit 129d8616 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

winex11: Use RTL_CONSTANT_STRING instead of reimplementing it.

parent 99396d49
...@@ -227,8 +227,8 @@ static LONG X11DRV_desktop_set_current_mode( ULONG_PTR id, const DEVMODEW *mode ...@@ -227,8 +227,8 @@ static LONG X11DRV_desktop_set_current_mode( ULONG_PTR id, const DEVMODEW *mode
static void query_desktop_work_area( RECT *rc_work ) static void query_desktop_work_area( RECT *rc_work )
{ {
static const WCHAR trayW[] = {'S','h','e','l','l','_','T','r','a','y','W','n','d'}; static const WCHAR trayW[] = {'S','h','e','l','l','_','T','r','a','y','W','n','d',0};
UNICODE_STRING str = { sizeof(trayW), sizeof(trayW), (WCHAR *)trayW }; UNICODE_STRING str = RTL_CONSTANT_STRING( trayW );
RECT rect; RECT rect;
HWND hwnd = NtUserFindWindowEx( 0, 0, &str, NULL, 0 ); HWND hwnd = NtUserFindWindowEx( 0, 0, &str, NULL, 0 );
......
...@@ -2744,8 +2744,8 @@ void X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags, ...@@ -2744,8 +2744,8 @@ void X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags,
/* check if the window icon should be hidden (i.e. moved off-screen) */ /* check if the window icon should be hidden (i.e. moved off-screen) */
static BOOL hide_icon( struct x11drv_win_data *data ) static BOOL hide_icon( struct x11drv_win_data *data )
{ {
static const WCHAR trayW[] = {'S','h','e','l','l','_','T','r','a','y','W','n','d'}; static const WCHAR trayW[] = {'S','h','e','l','l','_','T','r','a','y','W','n','d',0};
UNICODE_STRING str = { sizeof(trayW), sizeof(trayW), (WCHAR *)trayW }; UNICODE_STRING str = RTL_CONSTANT_STRING( trayW );
if (data->managed) return TRUE; if (data->managed) return TRUE;
/* hide icons in desktop mode when the taskbar is active */ /* hide icons in desktop mode when the taskbar is active */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment