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
5bad12c6
Commit
5bad12c6
authored
Feb 06, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added gecko_installer_workaround to url.c tests.
parent
e00840cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
Makefile.in
dlls/urlmon/tests/Makefile.in
+1
-1
url.c
dlls/urlmon/tests/url.c
+34
-0
No files found.
dlls/urlmon/tests/Makefile.in
View file @
5bad12c6
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
urlmon.dll
IMPORTS
=
urlmon
user32 kernel32 ole
32
IMPORTS
=
urlmon
ole32 user32 advapi32 kernel
32
EXTRALIBS
=
-luuid
CTESTS
=
\
...
...
dlls/urlmon/tests/url.c
View file @
5bad12c6
...
...
@@ -2395,8 +2395,40 @@ static void test_BindToStorage_fail(void)
test_ReportResult
(
S_FALSE
);
}
static
void
gecko_installer_workaround
(
BOOL
disable
)
{
HKEY
hkey
;
DWORD
res
;
static
BOOL
has_url
=
FALSE
;
static
char
url
[
2048
];
if
(
!
disable
&&
!
has_url
)
return
;
res
=
RegOpenKey
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
MSHTML"
,
&
hkey
);
if
(
res
!=
ERROR_SUCCESS
)
return
;
if
(
disable
)
{
DWORD
type
,
size
=
sizeof
(
url
);
res
=
RegQueryValueEx
(
hkey
,
"GeckoUrl"
,
NULL
,
&
type
,
(
PVOID
)
url
,
&
size
);
if
(
res
==
ERROR_SUCCESS
&&
type
==
REG_SZ
)
has_url
=
TRUE
;
RegDeleteValue
(
hkey
,
"GeckoUrl"
);
}
else
{
RegSetValueEx
(
hkey
,
"GeckoUrl"
,
0
,
REG_SZ
,
(
PVOID
)
url
,
lstrlenA
(
url
)
+
1
);
}
RegCloseKey
(
hkey
);
}
START_TEST
(
url
)
{
gecko_installer_workaround
(
TRUE
);
complete_event
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
complete_event2
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
thread_id
=
GetCurrentThreadId
();
...
...
@@ -2508,4 +2540,6 @@ START_TEST(url)
CloseHandle
(
complete_event
);
CloseHandle
(
complete_event2
);
CoUninitialize
();
gecko_installer_workaround
(
FALSE
);
}
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