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
27fb6262
Commit
27fb6262
authored
Oct 25, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Oct 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Fix richole tests compilation with __WINESRC__ defined.
parent
1431b1e9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
richole.c
dlls/riched20/tests/richole.c
+5
-6
No files found.
dlls/riched20/tests/richole.c
View file @
27fb6262
...
...
@@ -35,10 +35,9 @@
static
HMODULE
hmoduleRichEdit
;
static
HWND
new_window
(
LPC
T
STR
lpClassName
,
DWORD
dwStyle
,
HWND
parent
)
static
HWND
new_window
(
LPCSTR
lpClassName
,
DWORD
dwStyle
,
HWND
parent
)
{
HWND
hwnd
=
CreateWindow
(
lpClassName
,
NULL
,
HWND
hwnd
=
CreateWindowA
(
lpClassName
,
NULL
,
dwStyle
|
WS_POPUP
|
WS_HSCROLL
|
WS_VSCROLL
|
WS_VISIBLE
,
0
,
0
,
200
,
60
,
parent
,
NULL
,
hmoduleRichEdit
,
NULL
);
return
hwnd
;
...
...
@@ -46,7 +45,7 @@ static HWND new_window(LPCTSTR lpClassName, DWORD dwStyle, HWND parent)
static
HWND
new_richedit
(
HWND
parent
)
{
return
new_window
(
RICHEDIT_CLASS
,
ES_MULTILINE
,
parent
);
return
new_window
(
RICHEDIT_CLASS
20A
,
ES_MULTILINE
,
parent
);
}
static
BOOL
touch_file
(
LPCWSTR
filename
)
...
...
@@ -78,7 +77,7 @@ static void create_interfaces(HWND *w, IRichEditOle **reOle, ITextDocument **txt
ITextSelection
**
txtSel
)
{
*
w
=
new_richedit
(
NULL
);
SendMessage
(
*
w
,
EM_GETOLEINTERFACE
,
0
,
(
LPARAM
)
reOle
);
SendMessage
A
(
*
w
,
EM_GETOLEINTERFACE
,
0
,
(
LPARAM
)
reOle
);
IRichEditOle_QueryInterface
(
*
reOle
,
&
IID_ITextDocument
,
(
void
**
)
txtDoc
);
ITextDocument_GetSelection
(
*
txtDoc
,
txtSel
);
...
...
@@ -109,7 +108,7 @@ static void test_Interfaces(void)
return
;
}
res
=
SendMessage
(
w
,
EM_GETOLEINTERFACE
,
0
,
(
LPARAM
)
&
reOle
);
res
=
SendMessage
A
(
w
,
EM_GETOLEINTERFACE
,
0
,
(
LPARAM
)
&
reOle
);
ok
(
res
,
"SendMessage
\n
"
);
ok
(
reOle
!=
NULL
,
"EM_GETOLEINTERFACE
\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