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
5e68c071
Commit
5e68c071
authored
Sep 10, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Fix test failures on Win9x/WinME.
parent
094b6688
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
events.c
dlls/mshtml/tests/events.c
+10
-13
No files found.
dlls/mshtml/tests/events.c
View file @
5e68c071
...
...
@@ -105,9 +105,9 @@ static const char *debugstr_guid(REFIID riid)
static
int
strcmp_wa
(
LPCWSTR
strw
,
const
char
*
stra
)
{
W
CHAR
buf
[
512
];
MultiByteToWideChar
(
CP_ACP
,
0
,
stra
,
-
1
,
buf
,
sizeof
(
buf
)
/
sizeof
(
WCHAR
)
);
return
lstrcmp
W
(
strw
,
buf
);
CHAR
buf
[
512
];
WideCharToMultiByte
(
CP_ACP
,
0
,
strw
,
-
1
,
buf
,
sizeof
(
buf
),
NULL
,
NULL
);
return
lstrcmp
A
(
stra
,
buf
);
}
static
BSTR
a2bstr
(
const
char
*
str
)
...
...
@@ -1357,12 +1357,10 @@ static HRESULT WINAPI PropertyNotifySink_OnChanged(IPropertyNotifySink *iface, D
BSTR
state
;
HRESULT
hres
;
static
const
WCHAR
completeW
[]
=
{
'c'
,
'o'
,
'm'
,
'p'
,
'l'
,
'e'
,
't'
,
'e'
,
0
};
hres
=
IHTMLDocument2_get_readyState
(
notif_doc
,
&
state
);
ok
(
hres
==
S_OK
,
"get_readyState failed: %08x
\n
"
,
hres
);
if
(
!
lstrcmpW
(
state
,
completeW
))
if
(
!
strcmp_wa
(
state
,
"complete"
))
doc_complete
=
TRUE
;
SysFreeString
(
state
);
...
...
@@ -1524,19 +1522,18 @@ static LRESULT WINAPI wnd_proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
static
HWND
create_container_window
(
void
)
{
static
const
WCHAR
wszHTMLDocumentTest
[]
=
{
'H'
,
'T'
,
'M'
,
'L'
,
'D'
,
'o'
,
'c'
,
'u'
,
'm'
,
'e'
,
'n'
,
't'
,
'T'
,
'e'
,
's'
,
't'
,
0
};
static
WNDCLASSEXW
wndclass
=
{
sizeof
(
WNDCLASSEXW
),
static
const
CHAR
szHTMLDocumentTest
[]
=
"HTMLDocumentTest"
;
static
WNDCLASSEXA
wndclass
=
{
sizeof
(
WNDCLASSEXA
),
0
,
wnd_proc
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
w
szHTMLDocumentTest
,
szHTMLDocumentTest
,
NULL
};
RegisterClassEx
W
(
&
wndclass
);
return
CreateWindow
W
(
wszHTMLDocumentTest
,
w
szHTMLDocumentTest
,
RegisterClassEx
A
(
&
wndclass
);
return
CreateWindow
A
(
szHTMLDocumentTest
,
szHTMLDocumentTest
,
WS_OVERLAPPEDWINDOW
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
300
,
300
,
NULL
,
NULL
,
NULL
,
NULL
);
}
...
...
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