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
051fc345
Commit
051fc345
authored
Jan 06, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Fix timeouts on Win9x/WinMe by using more A-functions.
parent
a2c41b72
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
script.c
dlls/mshtml/tests/script.c
+7
-8
No files found.
dlls/mshtml/tests/script.c
View file @
051fc345
...
...
@@ -2221,14 +2221,14 @@ static void test_simple_script(void)
static
void
run_js_script
(
const
char
*
test_name
)
{
WCHAR
url
[
INTERNET_MAX_URL_LENGTH
];
char
urlA
[
INTERNET_MAX_URL_LENGTH
];
IPersistMoniker
*
persist
;
IHTMLDocument2
*
doc
;
IMoniker
*
mon
;
WCHAR
*
ptr
;
MSG
msg
;
HRESULT
hres
;
static
const
WCHAR
resW
[]
=
{
'r'
,
'e'
,
's'
,
':'
,
'/'
,
'/'
}
;
static
const
char
res
[]
=
"res://"
;
trace
(
"running %s...
\n
"
,
test_name
);
...
...
@@ -2239,12 +2239,11 @@ static void run_js_script(const char *test_name)
set_client_site
(
doc
,
TRUE
);
do_advise
(
doc
,
&
IID_IPropertyNotifySink
,
(
IUnknown
*
)
&
PropertyNotifySink
);
memcpy
(
url
,
resW
,
sizeof
(
resW
));
ptr
=
url
+
sizeof
(
resW
)
/
sizeof
(
WCHAR
);
GetModuleFileNameW
(
NULL
,
ptr
,
sizeof
(
url
)
/
sizeof
(
WCHAR
)
-
(
ptr
-
url
));
ptr
+=
lstrlenW
(
ptr
);
*
ptr
++
=
'/'
;
MultiByteToWideChar
(
CP_ACP
,
0
,
test_name
,
-
1
,
ptr
,
sizeof
(
url
)
/
sizeof
(
WCHAR
)
-
(
ptr
-
url
));
lstrcpyA
(
urlA
,
res
);
GetModuleFileNameA
(
NULL
,
urlA
+
lstrlenA
(
res
),
sizeof
(
urlA
)
-
lstrlenA
(
res
));
lstrcatA
(
urlA
,
"/"
);
lstrcatA
(
urlA
,
test_name
);
MultiByteToWideChar
(
CP_ACP
,
0
,
urlA
,
-
1
,
url
,
sizeof
(
url
)
/
sizeof
(
WCHAR
));
hres
=
CreateURLMoniker
(
NULL
,
url
,
&
mon
);
ok
(
hres
==
S_OK
,
"CreateURLMoniker failed: %08x
\n
"
,
hres
);
...
...
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