From 366167c88bb539b2a7a035b8674988dbe978006e Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Tue, 17 May 2022 12:13:59 +0200 Subject: [PATCH] SendSystemInfoDialog: fixed check of internet connection on Windows: S_FALSE is returned when COM interface is already initialized, it should be considered a success. --- src/slic3r/GUI/SendSystemInfoDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/SendSystemInfoDialog.cpp b/src/slic3r/GUI/SendSystemInfoDialog.cpp index e8e23a44e2..a21c864315 100644 --- a/src/slic3r/GUI/SendSystemInfoDialog.cpp +++ b/src/slic3r/GUI/SendSystemInfoDialog.cpp @@ -140,7 +140,7 @@ static bool check_internet_connection_win() { bool internet = true; // return true if COM object creation fails. - if (CoInitializeEx(NULL, COINIT_APARTMENTTHREADED) == S_OK) { + if (SUCCEEDED(CoInitializeEx(NULL, COINIT_APARTMENTTHREADED))) { { CComPtr pNLM; if (pNLM.CoCreateInstance(CLSID_NetworkListManager) == S_OK) {