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
d904f84e
Commit
d904f84e
authored
Dec 14, 2022
by
Sven Baars
Committed by
Alexandre Julliard
Dec 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Account for 16-bit instances in find_class().
This mimics the condition in the server. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53384
parent
b77255f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
class.c
dlls/win32u/class.c
+5
-2
No files found.
dlls/win32u/class.c
View file @
d904f84e
...
...
@@ -353,8 +353,9 @@ static void release_class_ptr( CLASS *ptr )
static
CLASS
*
find_class
(
HINSTANCE
module
,
UNICODE_STRING
*
name
)
{
ATOM
atom
=
get_int_atom_value
(
name
);
ULONG_PTR
instance
=
(
UINT_PTR
)
module
&
~
0xffff
;
ULONG_PTR
instance
=
(
UINT_PTR
)
module
;
CLASS
*
class
;
int
is_win16
;
user_lock
();
LIST_FOR_EACH_ENTRY
(
class
,
&
class_list
,
CLASS
,
entry
)
...
...
@@ -368,7 +369,9 @@ static CLASS *find_class( HINSTANCE module, UNICODE_STRING *name )
if
(
wcsnicmp
(
class
->
name
,
name
->
Buffer
,
name
->
Length
/
sizeof
(
WCHAR
)
)
||
class
->
name
[
name
->
Length
/
sizeof
(
WCHAR
)])
continue
;
}
if
(
!
class
->
local
||
!
module
||
(
class
->
instance
&
~
0xffff
)
==
instance
)
is_win16
=
!
(
class
->
instance
>>
16
);
if
(
!
instance
||
!
class
->
local
||
class
->
instance
==
instance
||
(
!
is_win16
&&
((
class
->
instance
&
~
0xffff
)
==
(
instance
&
~
0xffff
))))
{
TRACE
(
"%s %lx -> %p
\n
"
,
debugstr_us
(
name
),
instance
,
class
);
return
class
;
...
...
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