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
af4294a9
Commit
af4294a9
authored
Feb 09, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Allow creating windows using null driver for invisible winstations.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
440b9213
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
driver.c
dlls/user32/driver.c
+18
-1
No files found.
dlls/user32/driver.c
View file @
af4294a9
...
...
@@ -39,6 +39,8 @@ static USER_DRIVER null_driver, lazy_load_driver;
const
USER_DRIVER
*
USER_Driver
=
&
lazy_load_driver
;
static
char
driver_load_error
[
80
];
static
BOOL
CDECL
nodrv_CreateWindow
(
HWND
hwnd
);
static
HMODULE
load_desktop_driver
(
HWND
hwnd
)
{
static
const
WCHAR
display_device_guid_propW
[]
=
{
...
...
@@ -152,6 +154,16 @@ static const USER_DRIVER *load_driver(void)
GET_USER_FUNC
(
ThreadDetach
);
#undef GET_USER_FUNC
}
else
{
USEROBJECTFLAGS
flags
;
HWINSTA
winstation
;
winstation
=
GetProcessWindowStation
();
if
(
!
GetUserObjectInformationA
(
winstation
,
UOI_FLAGS
,
&
flags
,
sizeof
(
flags
),
NULL
)
||
(
flags
.
dwFlags
&
WSF_VISIBLE
))
driver
->
pCreateWindow
=
nodrv_CreateWindow
;
}
prev
=
InterlockedCompareExchangePointer
(
(
void
**
)
&
USER_Driver
,
driver
,
&
lazy_load_driver
);
if
(
prev
!=
&
lazy_load_driver
)
...
...
@@ -360,7 +372,7 @@ static BOOL CDECL nulldrv_CreateDesktopWindow( HWND hwnd )
return
TRUE
;
}
static
BOOL
CDECL
n
ull
drv_CreateWindow
(
HWND
hwnd
)
static
BOOL
CDECL
n
o
drv_CreateWindow
(
HWND
hwnd
)
{
static
int
warned
;
HWND
parent
=
GetAncestor
(
hwnd
,
GA_PARENT
);
...
...
@@ -374,6 +386,11 @@ static BOOL CDECL nulldrv_CreateWindow( HWND hwnd )
return
FALSE
;
}
static
BOOL
CDECL
nulldrv_CreateWindow
(
HWND
hwnd
)
{
return
TRUE
;
}
static
void
CDECL
nulldrv_DestroyWindow
(
HWND
hwnd
)
{
}
...
...
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