Yet another attempt at fixing CW_USEDEFAULT handling.