Marcus Meissner marcus@jet.franken.de writes:
resubmit ... forgot to allocate space for \0 i suspect.
Ciao, Marcus
Changelog: LB_GETTEXT, CB_GETLBTEXT mapper switched to dynamic allocation. Added testcase.
I don't think you want to send extra messages in the winproc code. Besides it doesn't guarantee that the buffer is large enough anyway since another thread may have changed the string in the meantime. I'd suggest simply allocating a buffer large enough for your app.