mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:25:52 +00:00
[INETCPL] Sync with Wine Staging 1.9.11. CORE-11368
svn path=/trunk/; revision=71744
This commit is contained in:
parent
aacb42ba4f
commit
76c1345b9d
2 changed files with 10 additions and 7 deletions
|
@ -25,12 +25,8 @@
|
|||
#include <shlobj.h>
|
||||
|
||||
static const WCHAR about_blank[] = {'a','b','o','u','t',':','b','l','a','n','k',0};
|
||||
#ifdef __REACTOS__
|
||||
static const WCHAR default_home[] = {'h','t','t','p',':','/','/','w','w','w','.','r','e','a','c','t','o','s','.','o','r','g',0};
|
||||
#else
|
||||
static const WCHAR default_home[] = {'h','t','t','p',':','/','/','w','w','w','.','w','i','n','e','h','q','.','o','r','g',0};
|
||||
#endif
|
||||
static const WCHAR start_page[] = {'S','t','a','r','t',' ','P','a','g','e',0};
|
||||
static const WCHAR default_page[] = {'D','e','f','a','u','l','t','_','P','a','g','e','_','U','R','L',0};
|
||||
static const WCHAR reg_ie_main[] = {'S','o','f','t','w','a','r','e','\\',
|
||||
'M','i','c','r','o','s','o','f','t','\\',
|
||||
'I','n','t','e','r','n','e','t',' ','E','x','p','l','o','r','e','r','\\',
|
||||
|
@ -169,6 +165,10 @@ static DWORD parse_url_from_outside(LPCWSTR url, LPWSTR out, DWORD maxlen)
|
|||
*/
|
||||
static INT_PTR general_on_command(HWND hwnd, WPARAM wparam)
|
||||
{
|
||||
WCHAR buffer[INTERNET_MAX_URL_LENGTH];
|
||||
DWORD len;
|
||||
DWORD type;
|
||||
LONG res;
|
||||
|
||||
switch (wparam)
|
||||
{
|
||||
|
@ -182,7 +182,10 @@ static INT_PTR general_on_command(HWND hwnd, WPARAM wparam)
|
|||
break;
|
||||
|
||||
case MAKEWPARAM(IDC_HOME_DEFAULT, BN_CLICKED):
|
||||
SetDlgItemTextW(hwnd, IDC_HOME_EDIT, default_home);
|
||||
len = sizeof(buffer);
|
||||
type = REG_SZ;
|
||||
res = SHRegGetUSValueW(reg_ie_main, default_page, &type, buffer, &len, FALSE, (LPBYTE) about_blank, sizeof(about_blank));
|
||||
if (!res && (type == REG_SZ)) SetDlgItemTextW(hwnd, IDC_HOME_EDIT, buffer);
|
||||
break;
|
||||
|
||||
case MAKEWPARAM(IDC_HISTORY_DELETE, BN_CLICKED):
|
||||
|
|
|
@ -224,7 +224,7 @@ reactos/dll/win32/xinput1_3 # Synced to WineStaging-1.9.4
|
|||
reactos/dll/win32/xinput9_1_0 # Synced to WineStaging-1.9.4
|
||||
reactos/dll/win32/xmllite # Synced to WineStaging-1.9.11
|
||||
|
||||
reactos/dll/cpl/inetcpl # Synced to WineStaging-1.9.4
|
||||
reactos/dll/cpl/inetcpl # Synced to WineStaging-1.9.11
|
||||
|
||||
ReactOS shares the following programs with Winehq.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue