Use forward slashes instead of backslashes in #use and #load commands
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4918 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
2a298c5762
commit
e7c71c10da
|
@ -60,9 +60,12 @@ int OpenMlFile(char *fname,int lenbuf)
|
|||
ofn.Flags = OFN_PATHMUSTEXIST | OFN_NOCHANGEDIR | OFN_LONGNAMES |
|
||||
OFN_HIDEREADONLY |OFN_EXPLORER;
|
||||
r = GetOpenFileName(&ofn);
|
||||
if (r == 0)
|
||||
return 0;
|
||||
else return 1;
|
||||
if (r) {
|
||||
/* Replace backslashes by forward slashes in file name */
|
||||
for (p = fname; *p != 0; p++)
|
||||
if (*p == '\\') *p = '/';
|
||||
}
|
||||
return r;
|
||||
}
|
||||
/*------------------------------------------------------------------------
|
||||
Procedure: GetSaveName ID:1
|
||||
|
|
Loading…
Reference in New Issue