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
65b3393d
Commit
65b3393d
authored
Jan 07, 2009
by
Peter Urbanec
Committed by
Alexandre Julliard
Jan 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintab32: Check for NULL before using context.
parent
0eebcf57
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
context.c
dlls/wintab32/context.c
+18
-0
No files found.
dlls/wintab32/context.c
View file @
65b3393d
...
...
@@ -685,6 +685,12 @@ BOOL WINAPI WTOverlap(HCTX hCtx, BOOL fToTop)
EnterCriticalSection
(
&
csTablet
);
context
=
TABLET_FindOpenContext
(
hCtx
);
if
(
!
context
)
{
LeaveCriticalSection
(
&
csTablet
);
return
FALSE
;
}
/* if we want to send to top and it's not already there */
if
(
fToTop
&&
context
->
context
.
lcStatus
!=
CXS_ONTOP
)
{
...
...
@@ -777,6 +783,12 @@ BOOL WINAPI WTSetA(HCTX hCtx, LPLOGCONTEXTA lpLogCtx)
EnterCriticalSection
(
&
csTablet
);
context
=
TABLET_FindOpenContext
(
hCtx
);
if
(
!
context
)
{
LeaveCriticalSection
(
&
csTablet
);
return
FALSE
;
}
LOGCONTEXTAtoW
(
lpLogCtx
,
&
context
->
context
);
LeaveCriticalSection
(
&
csTablet
);
...
...
@@ -799,6 +811,12 @@ BOOL WINAPI WTSetW(HCTX hCtx, LPLOGCONTEXTW lpLogCtx)
EnterCriticalSection
(
&
csTablet
);
context
=
TABLET_FindOpenContext
(
hCtx
);
if
(
!
context
)
{
LeaveCriticalSection
(
&
csTablet
);
return
FALSE
;
}
memmove
(
&
context
->
context
,
lpLogCtx
,
sizeof
(
LOGCONTEXTW
));
LeaveCriticalSection
(
&
csTablet
);
...
...
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