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


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


Back to the top