From 2a10734876dc68e0159a6f1e4510bc3f2f50dc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Strohh=C3=A4cker?= Date: Fri, 22 Feb 2008 18:18:03 +0000 Subject: [PATCH] fix get filename from entry Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3108 --- src/dos/drive_fat.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dos/drive_fat.cpp b/src/dos/drive_fat.cpp index ce411649..58f3059e 100644 --- a/src/dos/drive_fat.cpp +++ b/src/dos/drive_fat.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2002-2007 The DOSBox Team + * Copyright (C) 2002-20078 The DOSBox Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: drive_fat.cpp,v 1.23 2007-11-03 17:20:29 c2woody Exp $ */ +/* $Id: drive_fat.cpp,v 1.24 2008-02-22 18:18:03 c2woody Exp $ */ #include #include @@ -394,6 +394,7 @@ bool fatDrive::getEntryName(char *fullname, char *entname) { //LOG_MSG("Testing for filename %s", fullname); findDir = strtok(dirtoken,"\\"); + if (findDir==NULL) return false; findFile = findDir; while(findDir != NULL) { findFile = findDir;