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:
Davide Beatrici 2023-05-20 07:34:03 +02:00 committed by Alexandre Julliard
parent f898f206f6
commit f266dc094a

View file

@ -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;