Fix opening of local files in the browser on Windows.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4098 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2009-08-16 17:27:01 +00:00
parent eb7b78387f
commit bd0f98f3f5
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,8 @@
Add a translation hint to an ambiguous format string.
* src/Makefile.am:
Add missing include path to fix 'make distcheck'.
* src/win32.c:
Fix opening of local files in the browser on Windows.
* New release: Geany 0.18 "Kaine".

View File

@ -644,8 +644,11 @@ gint win32_message_dialog_unsaved(const gchar *msg)
void win32_open_browser(const gchar *uri)
{
if (strncmp(uri, "file://", 7) == 0)
{
uri += 7;
while (*uri == '/')
uri++;
}
ShellExecute(NULL, "open", uri, NULL, NULL, SW_SHOWNORMAL);
}