Jan Zerebecki wrote: >>cs is never NULL at that point. > Where should it be checked for NULL, then? Or what does it prevent to be > NULL? cs == lParam. And this code is inside if (lParam != NULL).