Allow / as path deliminator in Windows for urclock metadata

This commit is contained in:
Stefan Rueger 2022-11-27 14:44:46 +00:00
parent 0c96f5d6dc
commit 5a0975aee7
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
1 changed files with 2 additions and 3 deletions

View File

@ -545,11 +545,10 @@ static void set_date_filename(const PROGRAMMER *pgm, const char *fname) {
else {
ur.filename[0] = 0;
if(fname && *fname) {
#if !defined (WIN32)
if((base=strrchr(fname, '/')))
base++;
#else
if((base=strrchr(fname, '\\')))
#ifdef WIN32
else if((base=strrchr(fname, '\\')))
base++;
#endif
else