Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8dc41cf5
Commit
8dc41cf5
authored
Apr 27, 2007
by
Ken Thomases
Committed by
Alexandre Julliard
Apr 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebrowser: Don't put the default mailers or browsers into the registry.
parent
a61e58db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
24 deletions
+6
-24
main.c
programs/winebrowser/main.c
+6
-24
No files found.
programs/winebrowser/main.c
View file @
8dc41cf5
...
@@ -83,22 +83,13 @@ static int open_http_url( const char *url )
...
@@ -83,22 +83,13 @@ static int open_http_url( const char *url )
length
=
sizeof
(
browsers
);
length
=
sizeof
(
browsers
);
/* @@ Wine registry key: HKCU\Software\Wine\WineBrowser */
/* @@ Wine registry key: HKCU\Software\Wine\WineBrowser */
if
(
RegCreateKeyEx
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
WineBrowser"
,
0
,
NULL
,
if
(
!
(
r
=
RegOpenKey
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
WineBrowser"
,
&
key
)))
REG_OPTION_NON_VOLATILE
,
KEY_ALL_ACCESS
,
NULL
,
&
key
,
NULL
))
{
{
fprintf
(
stderr
,
"winebrowser: cannot create config key
\n
"
);
r
=
RegQueryValueExA
(
key
,
"Browsers"
,
0
,
&
type
,
(
LPBYTE
)
browsers
,
&
length
);
return
1
;
RegCloseKey
(
key
)
;
}
}
r
=
RegQueryValueExA
(
key
,
"Browsers"
,
0
,
&
type
,
(
LPBYTE
)
browsers
,
&
length
);
if
(
r
!=
ERROR_SUCCESS
)
if
(
r
!=
ERROR_SUCCESS
)
{
/* set value to the default */
RegSetValueExA
(
key
,
"Browsers"
,
0
,
REG_SZ
,
(
const
BYTE
*
)
defaultbrowsers
,
lstrlen
(
defaultbrowsers
)
+
1
);
strcpy
(
browsers
,
defaultbrowsers
);
strcpy
(
browsers
,
defaultbrowsers
);
}
RegCloseKey
(
key
);
return
launch_app
(
browsers
,
url
);
return
launch_app
(
browsers
,
url
);
}
}
...
@@ -115,22 +106,13 @@ static int open_mailto_url( const char *url )
...
@@ -115,22 +106,13 @@ static int open_mailto_url( const char *url )
length
=
sizeof
(
mailers
);
length
=
sizeof
(
mailers
);
/* @@ Wine registry key: HKCU\Software\Wine\WineBrowser */
/* @@ Wine registry key: HKCU\Software\Wine\WineBrowser */
if
(
RegCreateKeyEx
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
WineBrowser"
,
0
,
NULL
,
if
(
!
(
r
=
RegOpenKey
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
WineBrowser"
,
&
key
)))
REG_OPTION_NON_VOLATILE
,
KEY_ALL_ACCESS
,
NULL
,
&
key
,
NULL
))
{
{
fprintf
(
stderr
,
"winebrowser: cannot create config key
\n
"
);
r
=
RegQueryValueExA
(
key
,
"Mailers"
,
0
,
&
type
,
(
LPBYTE
)
mailers
,
&
length
);
return
1
;
RegCloseKey
(
key
)
;
}
}
r
=
RegQueryValueExA
(
key
,
"Mailers"
,
0
,
&
type
,
(
LPBYTE
)
mailers
,
&
length
);
if
(
r
!=
ERROR_SUCCESS
)
if
(
r
!=
ERROR_SUCCESS
)
{
/* set value to the default */
RegSetValueExA
(
key
,
"Mailers"
,
0
,
REG_SZ
,
(
const
BYTE
*
)
defaultmailers
,
lstrlen
(
defaultmailers
)
+
1
);
strcpy
(
mailers
,
defaultmailers
);
strcpy
(
mailers
,
defaultmailers
);
}
RegCloseKey
(
key
);
return
launch_app
(
mailers
,
url
);
return
launch_app
(
mailers
,
url
);
}
}
...
...
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