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
58b29953
Commit
58b29953
authored
Feb 22, 2006
by
Kevin Koltzau
Committed by
Alexandre Julliard
Feb 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Store reference to editor in ole interface.
parent
c0cd38fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
editor.c
dlls/riched20/editor.c
+1
-1
editor.h
dlls/riched20/editor.h
+1
-1
richole.c
dlls/riched20/richole.c
+5
-1
No files found.
dlls/riched20/editor.c
View file @
58b29953
...
...
@@ -2236,7 +2236,7 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
{
LPVOID
*
ppvObj
=
(
LPVOID
*
)
lParam
;
FIXME
(
"EM_GETOLEINTERFACE %p: stub
\n
"
,
ppvObj
);
return
CreateIRichEditOle
(
ppvObj
);
return
CreateIRichEditOle
(
editor
,
ppvObj
);
}
case
EM_SETOLECALLBACK
:
if
(
editor
->
lpOleCallback
)
...
...
dlls/riched20/editor.h
View file @
58b29953
...
...
@@ -233,7 +233,7 @@ void ME_QueueInvalidateFromCursor(ME_TextEditor *editor, int nCursor);
BOOL
ME_SetZoom
(
ME_TextEditor
*
editor
,
int
numerator
,
int
denominator
);
/* richole.c */
extern
LRESULT
CreateIRichEditOle
(
LPVOID
*
);
extern
LRESULT
CreateIRichEditOle
(
ME_TextEditor
*
editor
,
LPVOID
*
);
/* wintest.c */
...
...
dlls/riched20/richole.c
View file @
58b29953
...
...
@@ -31,6 +31,7 @@
#include "winuser.h"
#include "ole2.h"
#include "richole.h"
#include "editor.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
richedit
);
...
...
@@ -38,6 +39,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(richedit);
typedef
struct
IRichEditOleImpl
{
const
IRichEditOleVtbl
*
lpVtbl
;
LONG
ref
;
ME_TextEditor
*
editor
;
}
IRichEditOleImpl
;
/* there is no way to be consistent across different sets of headers - mingw, Wine, Win32 SDK*/
...
...
@@ -250,7 +253,7 @@ static const IRichEditOleVtbl revt = {
IRichEditOle_fnImportDataObject
};
LRESULT
CreateIRichEditOle
(
LPVOID
*
ppObj
)
LRESULT
CreateIRichEditOle
(
ME_TextEditor
*
editor
,
LPVOID
*
ppObj
)
{
IRichEditOleImpl
*
reo
;
...
...
@@ -260,6 +263,7 @@ LRESULT CreateIRichEditOle(LPVOID *ppObj)
reo
->
lpVtbl
=
&
revt
;
reo
->
ref
=
1
;
reo
->
editor
=
editor
;
TRACE
(
"Created %p
\n
"
,
reo
);
*
ppObj
=
(
LPVOID
)
reo
;
...
...
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