1
0
Fork 0

Silence a warning

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4225
This commit is contained in:
Peter Veenstra 2019-05-06 10:27:11 +00:00
parent b326adff06
commit e723355b92

View file

@ -104,7 +104,8 @@ bool Overlay_Drive::RemoveDir(char * dir) {
} else {
Bit16u olderror = dos.errorcode; //FindFirst/Next always set an errorcode, while RemoveDir itself shouldn't touch it if successful
DOS_DTA dta(dos.tables.tempdta);
dta.SetupSearch(0,(0xff & ~DOS_ATTR_VOLUME),"*.*"); //Fake drive as we don't use it.
char stardotstar[4] = {'*', '.', '*', 0};
dta.SetupSearch(0,(0xff & ~DOS_ATTR_VOLUME),stardotstar); //Fake drive as we don't use it.
bool ret = this->FindFirst(dir,dta,false);// DOS_FindFirst(args,0xffff & ~DOS_ATTR_VOLUME);
if (!ret) {
//Path not found. Should not be possible due to removedir doing a testdir, but lets be correct