Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
33ddf019
Commit
33ddf019
authored
Feb 11, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Avoid calling RtlInitUnicodeString on a static constant.
parent
3549ae75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
imm.c
dlls/win32u/imm.c
+2
-3
No files found.
dlls/win32u/imm.c
View file @
33ddf019
...
...
@@ -277,12 +277,11 @@ BOOL register_imm_window( HWND hwnd )
/* Create default IME window */
if
(
!
thread_data
->
window_cnt
++
)
{
UNICODE_STRING
class_name
,
name
;
static
const
WCHAR
imeW
[]
=
{
'I'
,
'M'
,
'E'
,
0
};
static
const
WCHAR
default_imeW
[]
=
{
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
' '
,
'I'
,
'M'
,
'E'
,
0
};
UNICODE_STRING
class_name
=
RTL_CONSTANT_STRING
(
imeW
);
UNICODE_STRING
name
=
RTL_CONSTANT_STRING
(
default_imeW
);
RtlInitUnicodeString
(
&
class_name
,
imeW
);
RtlInitUnicodeString
(
&
name
,
default_imeW
);
thread_data
->
default_hwnd
=
NtUserCreateWindowEx
(
0
,
&
class_name
,
&
class_name
,
&
name
,
WS_POPUP
|
WS_DISABLED
|
WS_CLIPSIBLINGS
,
0
,
0
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
FALSE
);
...
...
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