Allow / as path deliminator in Windows for urclock metadata
This commit is contained in:
parent
0c96f5d6dc
commit
5a0975aee7
|
@ -545,11 +545,10 @@ static void set_date_filename(const PROGRAMMER *pgm, const char *fname) {
|
||||||
else {
|
else {
|
||||||
ur.filename[0] = 0;
|
ur.filename[0] = 0;
|
||||||
if(fname && *fname) {
|
if(fname && *fname) {
|
||||||
#if !defined (WIN32)
|
|
||||||
if((base=strrchr(fname, '/')))
|
if((base=strrchr(fname, '/')))
|
||||||
base++;
|
base++;
|
||||||
#else
|
#ifdef WIN32
|
||||||
if((base=strrchr(fname, '\\')))
|
else if((base=strrchr(fname, '\\')))
|
||||||
base++;
|
base++;
|
||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue