From owner-freebsd-bugs Sun Dec 15 19: 3: 4 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 350E437B401 for ; Sun, 15 Dec 2002 19:03:03 -0800 (PST) Received: from tisch.mail.mindspring.net (tisch.mail.mindspring.net [207.69.200.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5F4C43E4A for ; Sun, 15 Dec 2002 19:03:02 -0800 (PST) (envelope-from bobf@mrp3.com) Received: from user-112v223.biz.mindspring.com ([66.47.136.67]) by tisch.mail.mindspring.net with esmtp (Exim 3.33 #1) id 18NlX3-0008Jz-00 for freebsd-bugs@FreeBSD.org; Sun, 15 Dec 2002 22:03:02 -0500 Received: from bobxp ([192.168.0.16]) by user-112v223.biz.mindspring.com with Microsoft SMTPSVC(5.0.2195.4905); Sun, 15 Dec 2002 19:02:40 -0800 Message-ID: <000501c2a4af$989ea100$1000a8c0@SFT> From: "Bob Frazier" To: Subject: problem in fdimage.exe (fixed) Date: Sun, 15 Dec 2002 19:02:39 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-OriginalArrivalTime: 16 Dec 2002 03:02:40.0676 (UTC) FILETIME=[98A1AE40:01C2A4AF] Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I found a problem in fdimage.exe which I was able to correct. The updated source 'fdimage.c' is attached to this e-mail. It (essentially) had trouble reading the command line arguments, and this prevented it from functioning at all. In short, pointers, structures, and other variables "passed by reference" should be 'nulled' before being used with the MSVC 16-bit compiler (this is generally good practice anyway). When I made the trivial changes and re-compiled it using MSVC 1.2c (MS's last 16-bit compiler) it worked perfectly, whereas the one in the 4.7 CD image failed to operate (as did the compiled unmodified 'fdimage.c' included on the CD image). The original EXE file was in the /tools sub-directory on CD #1, and its source file in /tools/src Since this is a mailing list I'm not including the compiled binary, nor the source. It is available on-line at the following web addresses: http://www.mrp3.com/webutil/fdimage.c http://www.mrp3.com/webutil/fdimage.exe If anyone wants to bug/submit this on my behalf, please feel free to do so. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message