Message85005
| Author |
amaury.forgeotdarc |
| Recipients |
amaury.forgeotdarc, kristjan.jonsson, loewis, mhammond |
| Date |
2009年04月01日.13:35:50 |
| SpamBayes Score |
7.950884e-09 |
| Marked as misclassified |
No |
| Message-id |
<1238592954.71.0.520730816385.issue5623@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I found a correction using the _msize() function, which returns the size
of a malloc'ed block. It is used to compute sizeof(ioinfo) at runtime.
The exact definition of the structure is no longer important; only the
first two fields are needed, which is a good thing IMO.
Now the code seems really independent from changes in the CRT.
Patch is attached.
The test (info->osfhnd == _get_osfhandle(fd)) is not really needed, I
left it outside an assert() because I wanted to test it on release builds.
Tested (only) with VS2005, sizeof_ioinfo is correctly computed when
presented to different versions of MSVCR80.dll. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年04月01日 13:35:55 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, loewis, mhammond, kristjan.jonsson |
| 2009年04月01日 13:35:54 | amaury.forgeotdarc | set | messageid: <1238592954.71.0.520730816385.issue5623@psf.upfronthosting.co.za> |
| 2009年04月01日 13:35:53 | amaury.forgeotdarc | link | issue5623 messages |
| 2009年04月01日 13:35:52 | amaury.forgeotdarc | create |
|