X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed; reply-type=original Message-id: <194E05B4528348F9953D7638294BB65F@broadpark.no> From: Gisle Vanem To: djgpp AT delorie DOT com References: <39cdc18e-eccb-4213-b896-db3be020702e AT w9g2000prg DOT googlegroups DOT com> <3e035797-6b8e-4106-bd29-98e87a9cc121 AT a21g2000prj DOT googlegroups DOT com> Subject: Re: csdpmi7 not working on virtualbox, how use dosmemget with seg ofs from int21h? Date: Wed, 16 Mar 2011 22:11:17 +0100 X-Priority: 3 X-MSMail-priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 Reply-To: djgpp AT delorie DOT com "Rod Pemberton" wrote: > #define OFFS 261 > #define BUFL 44 Rob, to make it even cleaner, more understandable and safer, I would had done: #define OFFS (PATH_MAX+2) /* 512+2, ext-buffer after 'mpath' */ #define BUFL sizeof(extFAT32FreeSpaceStructure) int lfn_7303(const char *mpath) { assert (OFFS+BUFL < __tb_size); dosmemput(mpath, 32, __tb); .. Otherwise, flawless. It also works here under a Win-XP SP3 4dos box. --gv