x11drv: XDND: Fix file drop to properly support
file:/// URIs(debugging problem)
Felix Nawothnig
flexo at holycrap.org
Thu Mar 22 11:03:12 CDT 2007
Maciej Katafiasz wrote:
>>>+ if(GetLastError())
>>>+ {
>>>+ TRACE("Can't convert to WCHAR: %d\n", GetLastError());
>>>+ goto clean_wfn;
>>>+ }
>>This is not an appropriate way of testing for an API failure.
> What is inappropriate and how should I fix it?
Most APIs don't change GLE on success. Some do but most often the
behaviour is undocumented or changed between 9x/NT. You should check the
return value which usually is either 0 or -1 (depends on the API) on
failure.
Felix
More information about the wine-devel
mailing list