Module: wine Branch: master Commit: 655e0a0c54b44ef864dcbc693fcfb7b5ecad4f80 URL: http://source.winehq.org/git/wine.git/?a=commit;h=655e0a0c54b44ef864dcbc693f...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Nov 19 21:31:51 2009 +0100
shdocvw: Get rid of Gecko checks in tests.
---
dlls/shdocvw/tests/webbrowser.c | 34 ---------------------------------- 1 files changed, 0 insertions(+), 34 deletions(-)
diff --git a/dlls/shdocvw/tests/webbrowser.c b/dlls/shdocvw/tests/webbrowser.c index 745ac15..41b7c7d 100644 --- a/dlls/shdocvw/tests/webbrowser.c +++ b/dlls/shdocvw/tests/webbrowser.c @@ -2368,40 +2368,8 @@ static void test_WebBrowser(BOOL do_download) ok(ref == 0, "ref=%d, expected 0\n", ref); }
-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(webbrowser) { - gecko_installer_workaround(TRUE); - container_hwnd = create_container_window();
OleInitialize(NULL); @@ -2412,6 +2380,4 @@ START_TEST(webbrowser) test_WebBrowser(TRUE);
OleUninitialize(); - - gecko_installer_workaround(FALSE); }