Re: oleaut32: Dont output an error when the typelib cannot be found
18 Dec
2012
18 Dec
'12
11:55 a.m.
Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> writes:
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index fa9b050..04914e0 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -2544,9 +2544,11 @@ static HRESULT TLB_PEFile_Open(LPCWSTR path, INT index, LPVOID *ppBase, DWORD *p return S_OK; } } - - hr = E_FAIL; } + + TRACE("No TYPELIB resource found\n"); + hr = E_FAIL; + SetLastError(0);
Setting last error to 0 is almost always wrong. In this case it's most likely just a side effect of CreateFile, and shouldn't need to be done explicitly. -- Alexandre Julliard julliard(a)winehq.org
4743
Age (days ago)
4743
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard