Module: wine Branch: master Commit: f266dc094a9b4fbe95792ed706891609901834e3 URL: https://gitlab.winehq.org/wine/wine/-/commit/f266dc094a9b4fbe95792ed70689160...
Author: Davide Beatrici git@davidebeatrici.dev Date: Sat May 20 07:34:03 2023 +0200
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; | ^~~~
---
programs/explorer/desktop.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c index 81eb0d1d01b..0e370fe3c2f 100644 --- a/programs/explorer/desktop.c +++ b/programs/explorer/desktop.c @@ -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;