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
4c41c20e
Commit
4c41c20e
authored
Oct 28, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Create the desktop window to trigger builtin class registration before…
user32: Create the desktop window to trigger builtin class registration before accessing the class list.
parent
0fc177fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
class.c
dlls/user32/class.c
+5
-7
No files found.
dlls/user32/class.c
View file @
4c41c20e
...
...
@@ -268,6 +268,8 @@ static CLASS *CLASS_FindClass( LPCWSTR name, HINSTANCE hinstance )
struct
list
*
ptr
;
ATOM
atom
=
get_int_atom_value
(
name
);
GetDesktopWindow
();
/* create the desktop window to trigger builtin class registration */
USER_Lock
();
LIST_FOR_EACH
(
ptr
,
&
class_list
)
...
...
@@ -507,7 +509,7 @@ ATOM WINAPI RegisterClassExA( const WNDCLASSEXA* wc )
CLASS
*
classPtr
;
HINSTANCE
instance
;
InitOnceExecuteOnce
(
&
init_once
,
register_builtins
,
NULL
,
NULL
);
GetDesktopWindow
();
/* create the desktop window to trigger builtin class registration */
if
(
wc
->
cbSize
!=
sizeof
(
*
wc
)
||
wc
->
cbClsExtra
<
0
||
wc
->
cbWndExtra
<
0
||
wc
->
hInstance
==
user32_module
)
/* we can't register a class for user32 */
...
...
@@ -562,7 +564,7 @@ ATOM WINAPI RegisterClassExW( const WNDCLASSEXW* wc )
CLASS
*
classPtr
;
HINSTANCE
instance
;
InitOnceExecuteOnce
(
&
init_once
,
register_builtins
,
NULL
,
NULL
);
GetDesktopWindow
();
/* create the desktop window to trigger builtin class registration */
if
(
wc
->
cbSize
!=
sizeof
(
*
wc
)
||
wc
->
cbClsExtra
<
0
||
wc
->
cbWndExtra
<
0
||
wc
->
hInstance
==
user32_module
)
/* we can't register a class for user32 */
...
...
@@ -620,7 +622,7 @@ BOOL WINAPI UnregisterClassW( LPCWSTR className, HINSTANCE hInstance )
{
CLASS
*
classPtr
=
NULL
;
InitOnceExecuteOnce
(
&
init_once
,
register_builtins
,
NULL
,
NULL
);
GetDesktopWindow
();
/* create the desktop window to trigger builtin class registration */
SERVER_START_REQ
(
destroy_class
)
{
...
...
@@ -1122,8 +1124,6 @@ BOOL WINAPI GetClassInfoExA( HINSTANCE hInstance, LPCSTR name, WNDCLASSEXA *wc )
TRACE
(
"%p %s %p
\n
"
,
hInstance
,
debugstr_a
(
name
),
wc
);
InitOnceExecuteOnce
(
&
init_once
,
register_builtins
,
NULL
,
NULL
);
if
(
!
wc
)
{
SetLastError
(
ERROR_NOACCESS
);
...
...
@@ -1175,8 +1175,6 @@ BOOL WINAPI GetClassInfoExW( HINSTANCE hInstance, LPCWSTR name, WNDCLASSEXW *wc
TRACE
(
"%p %s %p
\n
"
,
hInstance
,
debugstr_w
(
name
),
wc
);
InitOnceExecuteOnce
(
&
init_once
,
register_builtins
,
NULL
,
NULL
);
if
(
!
wc
)
{
SetLastError
(
ERROR_NOACCESS
);
...
...
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