backwrap directory iterator variable for iso drive in free iterator function (thanks to rcblanke; fixes armored fist 2 installer on an iso drive)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3467
This commit is contained in:
parent
2970dead37
commit
25c7518a8c
1 changed files with 6 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: drive_iso.cpp,v 1.26 2009-06-19 18:28:10 c2woody Exp $ */
|
||||
/* $Id: drive_iso.cpp,v 1.27 2009-09-22 21:48:08 c2woody Exp $ */
|
||||
|
||||
#include <cctype>
|
||||
#include <cstring>
|
||||
|
@ -430,7 +430,11 @@ void isoDrive::FreeDirIterator(const int dirIterator) {
|
|||
|
||||
// if this was the last aquired iterator decrement nextFreeIterator
|
||||
if ((dirIterator + 1) % MAX_OPENDIRS == nextFreeDirIterator) {
|
||||
nextFreeDirIterator--;
|
||||
if (nextFreeDirIterator>0) {
|
||||
nextFreeDirIterator--;
|
||||
} else {
|
||||
nextFreeDirIterator = MAX_OPENDIRS-1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue