SF.net SVN: geany:[4098] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Sun Aug 16 17:27:01 UTC 2009
Revision: 4098
http://geany.svn.sourceforge.net/geany/?rev=4098&view=rev
Author: eht16
Date: 2009-08-16 17:27:01 +0000 (Sun, 16 Aug 2009)
Log Message:
-----------
Fix opening of local files in the browser on Windows.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/win32.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-08-16 17:23:23 UTC (rev 4097)
+++ trunk/ChangeLog 2009-08-16 17:27:01 UTC (rev 4098)
@@ -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".
Modified: trunk/src/win32.c
===================================================================
--- trunk/src/win32.c 2009-08-16 17:23:23 UTC (rev 4097)
+++ trunk/src/win32.c 2009-08-16 17:27:01 UTC (rev 4098)
@@ -644,8 +644,11 @@
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);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list