mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 10:47:18 +00:00
winex11: Use RTL_CONSTANT_STRING instead of reimplementing it.
This commit is contained in:
parent
99396d4986
commit
129d861656
|
@ -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 const WCHAR trayW[] = {'S','h','e','l','l','_','T','r','a','y','W','n','d'};
|
||||
UNICODE_STRING str = { sizeof(trayW), sizeof(trayW), (WCHAR *)trayW };
|
||||
static const WCHAR trayW[] = {'S','h','e','l','l','_','T','r','a','y','W','n','d',0};
|
||||
UNICODE_STRING str = RTL_CONSTANT_STRING( trayW );
|
||||
RECT rect;
|
||||
HWND hwnd = NtUserFindWindowEx( 0, 0, &str, NULL, 0 );
|
||||
|
||||
|
|
|
@ -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) */
|
||||
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'};
|
||||
UNICODE_STRING str = { sizeof(trayW), sizeof(trayW), (WCHAR *)trayW };
|
||||
static const WCHAR trayW[] = {'S','h','e','l','l','_','T','r','a','y','W','n','d',0};
|
||||
UNICODE_STRING str = RTL_CONSTANT_STRING( trayW );
|
||||
|
||||
if (data->managed) return TRUE;
|
||||
/* hide icons in desktop mode when the taskbar is active */
|
||||
|
|
Loading…
Reference in a new issue