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
c76f0bee
Commit
c76f0bee
authored
Mar 04, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Mar 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Fail gracefully and early when run from a non-GUI session.
parent
7b21da56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
Makefile.in
dlls/winemac.drv/Makefile.in
+1
-1
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+9
-0
No files found.
dlls/winemac.drv/Makefile.in
View file @
c76f0bee
MODULE
=
winemac.drv
IMPORTS
=
user32 gdi32 advapi32
EXTRALIBS
=
-framework
AppKit
-framework
Carbon
EXTRALIBS
=
-framework
AppKit
-framework
Carbon
-framework
Security
C_SRCS
=
\
display.c
\
...
...
dlls/winemac.drv/macdrv_main.c
View file @
c76f0bee
...
...
@@ -21,6 +21,8 @@
*/
#include "config.h"
#include <Security/AuthSession.h>
#include "macdrv.h"
#include "wine/server.h"
...
...
@@ -69,8 +71,15 @@ const char* debugstr_cf(CFTypeRef t)
*/
static
BOOL
process_attach
(
void
)
{
SessionAttributeBits
attributes
;
OSStatus
status
;
assert
(
NUM_EVENT_TYPES
<=
sizeof
(
macdrv_event_mask
)
*
8
);
status
=
SessionGetInfo
(
callerSecuritySession
,
NULL
,
&
attributes
);
if
(
status
!=
noErr
||
!
(
attributes
&
sessionHasGraphicAccess
))
return
FALSE
;
if
((
thread_data_tls_index
=
TlsAlloc
())
==
TLS_OUT_OF_INDEXES
)
return
FALSE
;
macdrv_err_on
=
ERR_ON
(
macdrv
);
...
...
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