delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
X-Recipient: | djgpp AT delorie DOT com |
MIME-version: | 1.0 |
Message-id: | <194E05B4528348F9953D7638294BB65F@broadpark.no> |
From: | Gisle Vanem <gvanem AT broadpark DOT no> |
To: | djgpp AT delorie DOT com |
References: | <39cdc18e-eccb-4213-b896-db3be020702e AT w9g2000prg DOT googlegroups DOT com> |
<iknmth$1lb$1 AT speranza DOT aioe DOT org> | |
<3e035797-6b8e-4106-bd29-98e87a9cc121 AT a21g2000prj DOT googlegroups DOT com> | |
<E1Pz5o6-0001qv-4s AT fencepost DOT gnu DOT org> | |
<f1bda3ea-6f2b-4e52-9378-85dd56198198 AT i39g2000prd DOT googlegroups DOT com> | |
<ilqu49$5v6$1 AT speranza DOT aioe DOT org> | |
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" <do_not_have AT notreplytome DOT cmm> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |