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
2fa281f9
Commit
2fa281f9
authored
Apr 24, 1999
by
Guy Albertelli
Committed by
Alexandre Julliard
Apr 24, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix locking with proper calls to WIN_ReleaseWndPtr.
parent
819791ba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
13 deletions
+19
-13
combo.c
controls/combo.c
+1
-1
class.c
windows/class.c
+17
-12
dce.c
windows/dce.c
+1
-0
No files found.
controls/combo.c
View file @
2fa281f9
...
...
@@ -1730,7 +1730,7 @@ LRESULT WINAPI ComboWndProc( HWND hwnd, UINT message,
goto
END
;
case
WM_WINDOWPOSCHANGING
:
retvalue
=
COMBO_WindowPosChanging
(
hwnd
,
lphc
,
(
LPWINDOWPOS
)
lParam
);
return
retvalue
;
goto
END
;
case
WM_SIZE
:
if
(
lphc
->
hWndLBox
&&
!
(
lphc
->
wState
&
CBF_NORESIZE
)
)
COMBO_Size
(
lphc
);
...
...
windows/class.c
View file @
2fa281f9
...
...
@@ -723,6 +723,7 @@ WORD WINAPI GetClassWord16( HWND16 hwnd, INT16 offset )
WORD
WINAPI
GetClassWord
(
HWND
hwnd
,
INT
offset
)
{
WND
*
wndPtr
;
WORD
retvalue
=
0
;
TRACE
(
class
,
"%x %x
\n
"
,
hwnd
,
offset
);
...
...
@@ -731,29 +732,33 @@ WORD WINAPI GetClassWord( HWND hwnd, INT offset )
{
if
(
offset
<=
wndPtr
->
class
->
cbClsExtra
-
sizeof
(
WORD
))
{
WORD
retvalue
=
GET_WORD
(((
char
*
)
wndPtr
->
class
->
wExtra
)
+
offset
);
WIN_ReleaseWndPtr
(
wndPtr
);
return
retvalue
;
retvalue
=
GET_WORD
(((
char
*
)
wndPtr
->
class
->
wExtra
)
+
offset
);
goto
END
;
}
}
else
switch
(
offset
)
{
case
GCW_HBRBACKGROUND
:
return
wndPtr
->
class
->
hbrBackground
;
case
GCW_HCURSOR
:
return
wndPtr
->
class
->
hCursor
;
case
GCW_HICON
:
return
wndPtr
->
class
->
hIcon
;
case
GCW_HICONSM
:
return
wndPtr
->
class
->
hIconSm
;
case
GCW_ATOM
:
return
wndPtr
->
class
->
atomName
;
case
GCW_HBRBACKGROUND
:
retvalue
=
wndPtr
->
class
->
hbrBackground
;
goto
END
;
case
GCW_HCURSOR
:
retvalue
=
wndPtr
->
class
->
hCursor
;
goto
END
;
case
GCW_HICON
:
retvalue
=
wndPtr
->
class
->
hIcon
;
goto
END
;
case
GCW_HICONSM
:
retvalue
=
wndPtr
->
class
->
hIconSm
;
goto
END
;
case
GCW_ATOM
:
retvalue
=
wndPtr
->
class
->
atomName
;
goto
END
;
case
GCW_STYLE
:
case
GCW_CBWNDEXTRA
:
case
GCW_CBCLSEXTRA
:
case
GCW_HMODULE
:
WIN_ReleaseWndPtr
(
wndPtr
);
return
(
WORD
)
GetClassLongA
(
hwnd
,
offset
);
retvalue
=
(
WORD
)
GetClassLongA
(
hwnd
,
offset
);
}
WIN_ReleaseWndPtr
(
wndPtr
);
WARN
(
class
,
"Invalid offset %d
\n
"
,
offset
);
return
0
;
END:
WIN_ReleaseWndPtr
(
wndPtr
);
return
retvalue
;
}
...
...
windows/dce.c
View file @
2fa281f9
...
...
@@ -1015,6 +1015,7 @@ BOOL16 WINAPI DCHook16( HDC16 hDC, WORD code, DWORD data, LPARAM lParam )
DCE_OffsetVisRgn
(
hDC
,
hVisRgn
);
SelectVisRgn16
(
hDC
,
hVisRgn
);
DeleteObject
(
hVisRgn
);
WIN_ReleaseWndPtr
(
wndPtr
);
/* Release WIN_FindWndPtr lock */
}
else
/* non-fatal but shouldn't happen */
WARN
(
dc
,
"DC is not in use!
\n
"
);
...
...
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