From e723355b9277204ee97b2684bb17e06fc423858c Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 6 May 2019 10:27:11 +0000 Subject: [PATCH] Silence a warning Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4225 --- src/dos/drive_overlay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dos/drive_overlay.cpp b/src/dos/drive_overlay.cpp index fea5cc92..2c911b19 100644 --- a/src/dos/drive_overlay.cpp +++ b/src/dos/drive_overlay.cpp @@ -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