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
a2daceb7
Commit
a2daceb7
authored
Jun 07, 2007
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jun 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Use CallWindowProc instead of calling old window proc directly.
parent
b4b88b05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
atl_ax.c
dlls/atl/atl_ax.c
+2
-3
No files found.
dlls/atl/atl_ax.c
View file @
a2daceb7
...
...
@@ -848,7 +848,7 @@ static LRESULT IOCS_OnWndProc( IOCS *This, HWND hWnd, UINT uMsg, WPARAM wParam,
break
;
}
return
OrigWndProc
(
hWnd
,
uMsg
,
wParam
,
lParam
);
return
CallWindowProcW
(
OrigWndProc
,
hWnd
,
uMsg
,
wParam
,
lParam
);
}
static
LRESULT
CALLBACK
AtlHost_wndproc
(
HWND
hWnd
,
UINT
wMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
...
...
@@ -862,9 +862,8 @@ static HRESULT IOCS_Attach( IOCS *This, HWND hWnd, IUnknown *pUnkControl ) /* su
This
->
hWnd
=
hWnd
;
IUnknown_QueryInterface
(
pUnkControl
,
&
IID_IOleObject
,
(
void
**
)
&
This
->
control
);
IOleObject_SetClientSite
(
This
->
control
,
THIS2IOLECLIENTSITE
(
This
)
);
This
->
OrigWndProc
=
(
WNDPROC
)
GetWindowLongPtrW
(
This
->
hWnd
,
GWLP_WNDPROC
);
SetWindowLongPtrW
(
hWnd
,
GWLP_USERDATA
,
(
ULONG_PTR
)
This
);
SetWindowLongPtrW
(
hWnd
,
GWLP_WNDPROC
,
(
ULONG_PTR
)
AtlHost_wndproc
);
This
->
OrigWndProc
=
(
WNDPROC
)
SetWindowLongPtrW
(
hWnd
,
GWLP_WNDPROC
,
(
ULONG_PTR
)
AtlHost_wndproc
);
return
S_OK
;
}
...
...
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