[PATCH 1/2] secur32: Change scan_free_handle to print an error, if the index (handle) is out of range.

Henri Verbeet hverbeet at gmail.com
Tue Mar 24 07:30:47 CDT 2009


2009/3/24 Florian Köberle <florian at fkoeberle.de>:
> +    if (handle_idx < 0 || handle_idx >= schan_handle_count)
>
handle_idx can't be < 0 because it's unsigned. Printing an ERR if the
handle is out of range is probably ok, but I think crashing is better
than just returning NULL.



More information about the wine-devel mailing list