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
e4ec6f87
Commit
e4ec6f87
authored
Dec 05, 2023
by
Brendan Shanks
Committed by
Alexandre Julliard
Dec 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Use RTL_CONSTANT_STRING.
parent
e5c4acc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
clipboard.c
dlls/winemac.drv/clipboard.c
+1
-2
display.c
dlls/winemac.drv/display.c
+1
-2
No files found.
dlls/winemac.drv/clipboard.c
View file @
e4ec6f87
...
...
@@ -1665,8 +1665,7 @@ void macdrv_UpdateClipboard(void)
if
(
!
NtUserIsWindow
(
clipboard_manager
))
{
UNICODE_STRING
str
;
RtlInitUnicodeString
(
&
str
,
clipboard_classname
);
UNICODE_STRING
str
=
RTL_CONSTANT_STRING
(
clipboard_classname
);
clipboard_manager
=
NtUserFindWindowEx
(
NULL
,
NULL
,
&
str
,
NULL
,
0
);
if
(
!
clipboard_manager
)
{
...
...
dlls/winemac.drv/display.c
View file @
e4ec6f87
...
...
@@ -149,7 +149,7 @@ static BOOL write_display_settings(HKEY parent_hkey, CGDirectDisplayID displayID
char
display_key_name
[
19
];
HKEY
display_hkey
;
CGDisplayModeRef
display_mode
;
UNICODE_STRING
str
;
UNICODE_STRING
str
=
RTL_CONSTANT_STRING
(
pixelencodingW
)
;
DWORD
val
;
CFStringRef
pixel_encoding
;
size_t
len
;
...
...
@@ -189,7 +189,6 @@ static BOOL write_display_settings(HKEY parent_hkey, CGDirectDisplayID displayID
CFStringGetCharacters
(
pixel_encoding
,
CFRangeMake
(
0
,
len
),
(
UniChar
*
)
buf
);
buf
[
len
]
=
0
;
CFRelease
(
pixel_encoding
);
RtlInitUnicodeString
(
&
str
,
pixelencodingW
);
if
(
NtSetValueKey
(
display_hkey
,
&
str
,
0
,
REG_SZ
,
(
const
BYTE
*
)
buf
,
(
len
+
1
)
*
sizeof
(
WCHAR
)))
goto
fail
;
...
...
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