Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
50bbaf9d
Commit
50bbaf9d
authored
Aug 05, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Fix handling uninitialized process_layout.
parent
95791ea0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
sysparams.c
dlls/win32u/sysparams.c
+6
-1
win32u_private.h
dlls/win32u/win32u_private.h
+1
-1
window.c
dlls/win32u/window.c
+1
-1
No files found.
dlls/win32u/sysparams.c
View file @
50bbaf9d
...
...
@@ -375,7 +375,7 @@ union sysparam_all_entry
static
UINT
system_dpi
;
static
RECT
work_area
;
DWORD
process_layout
=
~
0u
;
static
DWORD
process_layout
=
~
0u
;
static
HDC
display_dc
;
static
pthread_mutex_t
display_dc_lock
=
PTHREAD_MUTEX_INITIALIZER
;
...
...
@@ -1631,6 +1631,11 @@ DPI_AWARENESS get_thread_dpi_awareness(void)
}
}
DWORD
get_process_layout
(
void
)
{
return
process_layout
==
~
0u
?
0
:
process_layout
;
}
/**********************************************************************
* get_thread_dpi
*/
...
...
dlls/win32u/win32u_private.h
View file @
50bbaf9d
...
...
@@ -326,7 +326,6 @@ extern void track_scroll_bar( HWND hwnd, int scrollbar, POINT pt ) DECLSPEC_HIDD
/* sysparams.c */
extern
BOOL
enable_thunk_lock
DECLSPEC_HIDDEN
;
extern
DWORD
process_layout
DECLSPEC_HIDDEN
;
extern
HBRUSH
get_55aa_brush
(
void
)
DECLSPEC_HIDDEN
;
extern
DWORD
get_dialog_base_units
(
void
)
DECLSPEC_HIDDEN
;
extern
LONG
get_char_dimensions
(
HDC
hdc
,
TEXTMETRICW
*
metric
,
LONG
*
height
)
DECLSPEC_HIDDEN
;
...
...
@@ -335,6 +334,7 @@ extern UINT get_monitor_dpi( HMONITOR monitor ) DECLSPEC_HIDDEN;
extern
BOOL
get_monitor_info
(
HMONITOR
handle
,
MONITORINFO
*
info
)
DECLSPEC_HIDDEN
;
extern
UINT
get_win_monitor_dpi
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
RECT
get_primary_monitor_rect
(
UINT
dpi
)
DECLSPEC_HIDDEN
;
extern
DWORD
get_process_layout
(
void
)
DECLSPEC_HIDDEN
;
extern
COLORREF
get_sys_color
(
int
index
)
DECLSPEC_HIDDEN
;
extern
HBRUSH
get_sys_color_brush
(
unsigned
int
index
)
DECLSPEC_HIDDEN
;
extern
HPEN
get_sys_color_pen
(
unsigned
int
index
)
DECLSPEC_HIDDEN
;
...
...
dlls/win32u/window.c
View file @
50bbaf9d
...
...
@@ -5094,7 +5094,7 @@ HWND WINAPI NtUserCreateWindowEx( DWORD ex_style, UNICODE_STRING *class_name,
(
class_name
->
Length
!=
sizeof
(
messageW
)
||
wcsnicmp
(
class_name
->
Buffer
,
messageW
,
ARRAYSIZE
(
messageW
)
)))
{
if
(
process_layout
&
LAYOUT_RTL
)
cs
.
dwExStyle
|=
WS_EX_LAYOUTRTL
;
if
(
get_process_layout
()
&
LAYOUT_RTL
)
cs
.
dwExStyle
|=
WS_EX_LAYOUTRTL
;
parent
=
get_desktop_window
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment