Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[rt.cpan.org #6757] Win32::API::Struct->sizeof() seems not to compute correctly struct size when nesting them

5 views
Skip to first unread message

Daniel Dragan via RT

unread,
Oct 19, 2012, 4:51:31 AM10/19/12
to libw...@perl.org
Fri Oct 19 04:51:30 2012: Request 6757 was acted upon.
Transaction: Correspondence added by BULKDD
Queue: Win32-API
Subject: Win32::API::Struct->sizeof() seems not to compute correctly struct size when nesting them
Broken in: 0.40
Severity: Important
Owner: Nobody
Requestors: dfa...@cpan.org
Status: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=6757 >


On Fri Jun 25 09:45:47 2004, guest wrote:
> Please report to http://www.perlmonks.org/index.pl?node_id=369601 for
> a description of the problem.
>
> Best regards,
> Dominique

Running the code on perlmonks in 0.72 I got
_______________________________________________
sizeof('POINT') = 8
sizeof('CURSORINFO') = 20
sizeof('MYSTRUCT') = 12
_______________________________________________

on perlmonks you said you got
_______________________________________________
sizeof('POINT') = 8
sizeof('CURSORINFO') = 16
sizeof('MYSTRUCT') = 12
_______________________________________________


DWORD cbSize; 4
DWORD flags; 4
HANDLE hCursor; 4
POINT ptScreenPos; ->
LONG x; 4
LONG y; 4
= 20

So I believe this has been already fixed so I am closing this bug.
0 new messages