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
e7296eae
Commit
e7296eae
authored
Oct 28, 2007
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Oct 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Fix test crash on WinXP-SP2.
parent
17e93466
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
editor.c
dlls/riched20/tests/editor.c
+32
-0
No files found.
dlls/riched20/tests/editor.c
View file @
e7296eae
...
...
@@ -1087,6 +1087,8 @@ static void test_EM_SETTEXTEX(void)
getText
.
codepage
=
1200
;
/* no constant for unicode */
getText
.
cb
=
MAX_BUF_LEN
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
setText
.
flags
=
0
;
SendMessage
(
hwndRichEdit
,
EM_SETTEXTEX
,
(
WPARAM
)
&
setText
,
(
LPARAM
)
TestItem1
);
...
...
@@ -1101,6 +1103,8 @@ static void test_EM_SETTEXTEX(void)
getText
.
codepage
=
1200
;
/* no constant for unicode */
getText
.
cb
=
MAX_BUF_LEN
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
setText
.
flags
=
0
;
SendMessage
(
hwndRichEdit
,
EM_SETTEXTEX
,
(
WPARAM
)
&
setText
,
(
LPARAM
)
TestItem2
);
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buf
);
...
...
@@ -1117,6 +1121,8 @@ static void test_EM_SETTEXTEX(void)
getText
.
codepage
=
1200
;
/* no constant for unicode */
getText
.
cb
=
MAX_BUF_LEN
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
setText
.
flags
=
0
;
SendMessage
(
hwndRichEdit
,
EM_SETTEXTEX
,
(
WPARAM
)
&
setText
,
(
LPARAM
)
TestItem3
);
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buf
);
...
...
@@ -1128,6 +1134,8 @@ static void test_EM_SETTEXTEX(void)
getText
.
codepage
=
1200
;
/* no constant for unicode */
getText
.
cb
=
MAX_BUF_LEN
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
setText
.
flags
=
0
;
SendMessage
(
hwndRichEdit
,
EM_SETTEXTEX
,
(
WPARAM
)
&
setText
,
(
LPARAM
)
TestItem3alt
);
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buf
);
...
...
@@ -1139,6 +1147,8 @@ static void test_EM_SETTEXTEX(void)
getText
.
codepage
=
1200
;
/* no constant for unicode */
getText
.
cb
=
MAX_BUF_LEN
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
setText
.
flags
=
0
;
SendMessage
(
hwndRichEdit
,
EM_SETTEXTEX
,
(
WPARAM
)
&
setText
,
(
LPARAM
)
TestItem4
);
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buf
);
...
...
@@ -1747,6 +1757,8 @@ static void test_EM_REPLACESEL(void)
getText
.
cb
=
1024
;
getText
.
codepage
=
CP_ACP
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buffer
);
ok
(
strcmp
(
buffer
,
"RichEdit1"
)
==
0
,
"EM_GETTEXTEX results not what was set by EM_REPLACESEL
\n
"
);
...
...
@@ -1760,6 +1772,8 @@ static void test_EM_REPLACESEL(void)
getText
.
cb
=
1024
;
getText
.
codepage
=
CP_ACP
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buffer
);
ok
(
strcmp
(
buffer
,
"RichEdit1
\r
"
)
==
0
,
"EM_GETTEXTEX returned incorrect string
\n
"
);
...
...
@@ -1779,6 +1793,8 @@ static void test_EM_REPLACESEL(void)
getText
.
cb
=
1024
;
getText
.
codepage
=
CP_ACP
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buffer
);
ok
(
strcmp
(
buffer
,
"RichEdit1
\r
"
)
==
0
,
"EM_GETTEXTEX returned incorrect string
\n
"
);
...
...
@@ -1805,6 +1821,8 @@ static void test_EM_REPLACESEL(void)
getText
.
cb
=
1024
;
getText
.
codepage
=
CP_ACP
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buffer
);
ok
(
strcmp
(
buffer
,
"
\r\r
"
)
==
0
,
"EM_GETTEXTEX returned incorrect string
\n
"
);
...
...
@@ -1821,6 +1839,8 @@ static void test_EM_REPLACESEL(void)
getText
.
cb
=
1024
;
getText
.
codepage
=
CP_ACP
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buffer
);
ok
(
strcmp
(
buffer
,
" "
)
==
0
,
"EM_GETTEXTEX returned incorrect string
\n
"
);
...
...
@@ -1837,6 +1857,8 @@ static void test_EM_REPLACESEL(void)
getText
.
cb
=
1024
;
getText
.
codepage
=
CP_ACP
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buffer
);
ok
(
strcmp
(
buffer
,
"
\r\r\r
\r\r\r
"
)
==
0
,
"EM_GETTEXTEX returned incorrect string
\n
"
);
...
...
@@ -1853,6 +1875,8 @@ static void test_EM_REPLACESEL(void)
getText
.
cb
=
1024
;
getText
.
codepage
=
CP_ACP
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buffer
);
ok
(
strcmp
(
buffer
,
"
\r
"
)
==
0
,
"EM_GETTEXTEX returned incorrect string
\n
"
);
...
...
@@ -1869,6 +1893,8 @@ static void test_EM_REPLACESEL(void)
getText
.
cb
=
1024
;
getText
.
codepage
=
CP_ACP
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buffer
);
ok
(
strcmp
(
buffer
,
"
\r\r
"
)
==
0
,
"EM_GETTEXTEX returned incorrect string
\n
"
);
...
...
@@ -1885,6 +1911,8 @@ static void test_EM_REPLACESEL(void)
getText
.
cb
=
1024
;
getText
.
codepage
=
CP_ACP
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buffer
);
ok
(
strcmp
(
buffer
,
"
\r
X
\r\r\r
"
)
==
0
,
"EM_GETTEXTEX returned incorrect string
\n
"
);
...
...
@@ -1901,6 +1929,8 @@ static void test_EM_REPLACESEL(void)
getText
.
cb
=
1024
;
getText
.
codepage
=
CP_ACP
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buffer
);
ok
(
strcmp
(
buffer
,
"
\r\r
"
)
==
0
,
"EM_GETTEXTEX returned incorrect string
\n
"
);
...
...
@@ -1917,6 +1947,8 @@ static void test_EM_REPLACESEL(void)
getText
.
cb
=
1024
;
getText
.
codepage
=
CP_ACP
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefaultChar
=
NULL
;
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
buffer
);
ok
(
strcmp
(
buffer
,
"
\r\r\r\r\r\r
"
)
==
0
,
"EM_GETTEXTEX returned incorrect string
\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