Fix for "Unmapped error code 0 : success"

Eric Pouech pouech-eric at
Tue Mar 18 15:22:25 CST 2003

Sylvain Petreolle wrote:
> In dlls/ntdll/cdrom.c, the function CDROM_GetStatusCode is called
> sometimes
> with the value -1.
> There is no test for this value for now, Im about to send a patch for
> it.
I don't get your point... CDROM_GetStatusCode is called with:
* 0 as parameter when previous operation was succesfull, and nothing happens
* -1, if the previous operation went wrong, and the goal of the function 
is to transform the Unix errno into a Win32 status code
so, being called with -1 is normal, it may miss some unix => win32 mappings


Eric Pouech

More information about the wine-devel mailing list