Hi Juan,
> Martin wrote:
> > But we could use the expression
> > "MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32,
> > ERROR_FILE_NOT_FOUND)" instead.
>
> A shorter version is
> HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND).
Yes, this would also be a possible solution.
But HRESULT_FROM_WIN32 contains so
Hi Martin,
Martin wrote:
> But we could use the expression
> "MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32,
> ERROR_FILE_NOT_FOUND)" instead.
A shorter version is
HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND).
Question: could you not change _ILCreateFromPathA to
return an HRESULT?
--Juan
> ...
> Martin> 0x80070002L; /* file not found */ } else { pidlTemp =
> ...
> Don't we have a symbolic error for that?
There is no such constant in winerror.h.
But we could use the expression "MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32,
ERROR_FILE_NOT_FOUND)" instead.
This is also used for
> "Martin" == Martin Fuchs <[EMAIL PROTECTED]> writes:
Martin> Changelog: return "file not found" error values instead of
Martin> E_INVALIDARG if _ILCreateFromPathA() failed to find files
...
Martin> 0x80070002L; /* file not found */ } else { pidlTemp =
...
Don't we have a symbo