Error in wine's implementation of msvcrt