mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 16:43:38 +00:00
explorer: Fix uninitialized variable warning.
programs/explorer/desktop.c:104:16: warning: ‘hres’ may be used uninitialized in this function [-Wmaybe-uninitialized] 104 | return hres; | ^~~~
This commit is contained in:
parent
f898f206f6
commit
f266dc094a
|
@ -98,10 +98,11 @@ static HRESULT get_typeinfo(tid_t tid, ITypeInfo **typeinfo)
|
|||
{
|
||||
HRESULT hres;
|
||||
|
||||
if (!typelib)
|
||||
if (!typelib) {
|
||||
hres = load_typelib();
|
||||
if (!typelib)
|
||||
return hres;
|
||||
if (!typelib)
|
||||
return hres;
|
||||
}
|
||||
|
||||
if (!typeinfos[tid]) {
|
||||
ITypeInfo *ti;
|
||||
|
|
Loading…
Reference in a new issue