Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Understanding code in TextLayout Win32


Thanks, that helped me a lot.
Now this makes sense :)


2008/8/21 Grant Gayed <Grant_Gayed@xxxxxxxxxx>

Hi Frank,

> OS.MoveMemory(run.psc, new int /*long*/ [1], OS.PTR_SIZEOF);
> ...
> Why is it overwritten with '1' ?

I'm not sure what's happening here in the big picture, but this MoveMemory is moving a value of 0 to run.psc, not 1 (1 is the size of the array containing the value 0).  So it's setting the member to NULL.

Grant


_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top