mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Win32 build: gwenhywfar needs another patch
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18345 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
19962e096c
commit
2b6e0f5f8d
@ -108,6 +108,25 @@ index 363cdff..9a5e1d1 100644
|
|||||||
p=s;
|
p=s;
|
||||||
while(*p && *p!='?')
|
while(*p && *p!='?')
|
||||||
p++;
|
p++;
|
||||||
|
diff --git a/plugins/configmgr/dir/cfgdir.c b/plugins/configmgr/dir/cfgdir.c
|
||||||
|
index 7b89933..e44ac9a 100644
|
||||||
|
--- a/plugins/configmgr/dir/cfgdir.c
|
||||||
|
+++ b/plugins/configmgr/dir/cfgdir.c
|
||||||
|
@@ -102,8 +102,13 @@ GWEN_CONFIGMGR *GWEN_ConfigMgrDir_new(const char *url) {
|
||||||
|
GWEN_Buffer_AppendString(nbuf, s);
|
||||||
|
s=GWEN_Url_GetPath(gurl);
|
||||||
|
if (s) {
|
||||||
|
- if (*s!='/' && *s!='\\')
|
||||||
|
+ /* Does this begin with a slash? If not, we add one, but only if
|
||||||
|
+ this isn't a drive letter (for windows!) */
|
||||||
|
+ if (*s!='/' && *s!='\\'
|
||||||
|
+ && !(isalpha(s[0]) && s[1] == ':'
|
||||||
|
+ && (s[2] == '/' || s[2] == '\\'))) {
|
||||||
|
GWEN_Buffer_AppendString(nbuf, GWEN_DIR_SEPARATOR_S);
|
||||||
|
+ }
|
||||||
|
GWEN_Buffer_AppendString(nbuf, s);
|
||||||
|
}
|
||||||
|
xcfg->folder=strdup(GWEN_Buffer_GetStart(nbuf));
|
||||||
--
|
--
|
||||||
1.6.1.rc3.51.g5832d
|
1.6.1.rc3.51.g5832d
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user