🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #984

MSC 6.0 Bug/struct params

#984
From: mms00786
Date: Tue, 17 Jul 1990 18:43
15 lines
955 bytes
I just got off the hook with Microsoft Tech Support, and thought I would report
this bug in Microsoft C 6.0 to the net.

When passing a struct to a function, the struct must be word aligned. If your
struct is more than 10 bytes long, and if it has an odd-byte size, the struct
will not get passed correctly to the function.

Workaround is to either pad your struct to it has even length, or pass in a
pointer to the struct.

Hope this helps someone.

Milan.
.
Technical Details
Message-ID: <139400007@uxa.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!mms00786

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!mms00786
From: mms00786@uxa.cso.uiuc.edu
Newsgroups: comp.sys.ibm.pc.programmer
Subject: MSC 6.0 Bug/struct params
Message-ID: <139400007@uxa.cso.uiuc.edu>
Date: 17 Jul 90 18:43:00 GMT
Lines: 15
Nf-ID: #N:uxa.cso.uiuc.edu:139400007:000:461
Nf-From: uxa.cso.uiuc.edu!mms00786    Jul 17 13:43:00 1990