From f5aa7f4d8860e627d44aec6f9e30e7581678c330 Mon Sep 17 00:00:00 2001 From: 5d56ff255b4bb8866101856f9e0def651041e410 <5d56ff255b4bb8866101856f9e0def651041e410@redacted> Date: Sat, 9 Nov 2019 00:18:28 -0700 Subject: [PATCH] Fix build on msbuild --- hooklib/setupapi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hooklib/setupapi.c b/hooklib/setupapi.c index dac66ba..eb50323 100644 --- a/hooklib/setupapi.c +++ b/hooklib/setupapi.c @@ -126,6 +126,7 @@ HRESULT setupapi_add_phantom_dev(const GUID *iface_class, const wchar_t *path) class_ = &setupapi_classes[setupapi_nclasses++]; class_->guid = iface_class; class_->path = path; + hr = S_OK; end: LeaveCriticalSection(&setupapi_lock);