Don't crash on NULL data in RegSetValueEx

Andreas Mohr andi at rhlx01.fht-esslingen.de
Tue Jul 20 09:52:22 CDT 2004


Hi,

On Tue, Jul 20, 2004 at 03:25:57PM +0100, Mike Hearn wrote:
> I tested this on Win98. The platform SDK installer does this.
Ah, right, my uncommitted patch from April 14.

> +    if (!data) return ERROR_INVALID_PARAMETER;
> +
>      if (!is_version_nt())  /* win95 */
>      {
Are you sure this is correct?
free-av.de called RegSetValueEx with a NULL value on Win9x
setting only, so maybe NT handles this differently?
(I thus placed the check into the win9x branch only)

Andreas Mohr



More information about the wine-devel mailing list