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
c02407e9
Commit
c02407e9
authored
Apr 08, 2019
by
Sebastian Lackner
Committed by
Alexandre Julliard
Apr 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Implement CWF_CREATE_ONLY flag for CreateWindowStation.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
02f03428
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
winstation.c
dlls/user32/winstation.c
+6
-5
winuser.h
include/winuser.h
+2
-0
No files found.
dlls/user32/winstation.c
View file @
c02407e9
...
...
@@ -83,26 +83,26 @@ static HANDLE get_winstations_dir_handle(void)
/***********************************************************************
* CreateWindowStationA (USER32.@)
*/
HWINSTA
WINAPI
CreateWindowStationA
(
LPCSTR
name
,
DWORD
reserved
,
ACCESS_MASK
access
,
HWINSTA
WINAPI
CreateWindowStationA
(
LPCSTR
name
,
DWORD
flags
,
ACCESS_MASK
access
,
LPSECURITY_ATTRIBUTES
sa
)
{
WCHAR
buffer
[
MAX_PATH
];
if
(
!
name
)
return
CreateWindowStationW
(
NULL
,
reserved
,
access
,
sa
);
if
(
!
name
)
return
CreateWindowStationW
(
NULL
,
flags
,
access
,
sa
);
if
(
!
MultiByteToWideChar
(
CP_ACP
,
0
,
name
,
-
1
,
buffer
,
MAX_PATH
))
{
SetLastError
(
ERROR_FILENAME_EXCED_RANGE
);
return
0
;
}
return
CreateWindowStationW
(
buffer
,
reserved
,
access
,
sa
);
return
CreateWindowStationW
(
buffer
,
flags
,
access
,
sa
);
}
/***********************************************************************
* CreateWindowStationW (USER32.@)
*/
HWINSTA
WINAPI
CreateWindowStationW
(
LPCWSTR
name
,
DWORD
reserved
,
ACCESS_MASK
access
,
HWINSTA
WINAPI
CreateWindowStationW
(
LPCWSTR
name
,
DWORD
flags
,
ACCESS_MASK
access
,
LPSECURITY_ATTRIBUTES
sa
)
{
HANDLE
ret
;
...
...
@@ -117,7 +117,8 @@ HWINSTA WINAPI CreateWindowStationW( LPCWSTR name, DWORD reserved, ACCESS_MASK a
{
req
->
flags
=
0
;
req
->
access
=
access
;
req
->
attributes
=
OBJ_CASE_INSENSITIVE
|
OBJ_OPENIF
|
req
->
attributes
=
OBJ_CASE_INSENSITIVE
|
((
flags
&
CWF_CREATE_ONLY
)
?
0
:
OBJ_OPENIF
)
|
((
sa
&&
sa
->
bInheritHandle
)
?
OBJ_INHERIT
:
0
);
req
->
rootdir
=
wine_server_obj_handle
(
get_winstations_dir_handle
()
);
wine_server_add_data
(
req
,
name
,
len
*
sizeof
(
WCHAR
)
);
...
...
include/winuser.h
View file @
c02407e9
...
...
@@ -101,6 +101,8 @@ typedef void* HPOWERNOTIFY;
#define WSF_VISIBLE 1
#define DF_ALLOWOTHERACCOUNTHOOK 1
#define CWF_CREATE_ONLY 0x01
typedef
struct
tagUSEROBJECTFLAGS
{
BOOL
fInherit
;
BOOL
fReserved
;
...
...
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