Use VARIANT_BOOL sync
authorThomas
Mon, 04 Nov 2019 13:10:04 +0100
branchsync
changeset 368407097584d25
parent 367 38698c75fbbf
child 370 8be91c5f6570
Use VARIANT_BOOL
CpEpEngine.cpp
CpEpEngine.h
pEpCOMServerAdapter.idl
     1.1 --- a/CpEpEngine.cpp	Fri Nov 01 15:06:30 2019 +0100
     1.2 +++ b/CpEpEngine.cpp	Mon Nov 04 13:10:04 2019 +0100
     1.3 @@ -1576,7 +1576,7 @@
     1.4  }
     1.5  
     1.6  // Force an update check now
     1.7 -STDMETHODIMP CpEpEngine::UpdateNow(BSTR productCode, BOOL *didUpdate)
     1.8 +STDMETHODIMP CpEpEngine::UpdateNow(BSTR productCode, VARIANT_BOOL *didUpdate)
     1.9  {
    1.10  	BOOL result = FALSE;
    1.11  
    1.12 @@ -1592,7 +1592,6 @@
    1.13  				break;
    1.14  			}
    1.15  		}
    1.16 -		result = TRUE;
    1.17  	}
    1.18      catch (bad_alloc&) {
    1.19  		return E_OUTOFMEMORY;
     2.1 --- a/CpEpEngine.h	Fri Nov 01 15:06:30 2019 +0100
     2.2 +++ b/CpEpEngine.h	Mon Nov 04 13:10:04 2019 +0100
     2.3 @@ -272,7 +272,7 @@
     2.4  	STDMETHOD(TrustOwnKey)(pEpIdentity * ident);
     2.5  
     2.6      // Trigger an immediate update
     2.7 -    STDMETHOD(UpdateNow)(BSTR productCode, BOOL *didUpdate);
     2.8 +    STDMETHOD(UpdateNow)(BSTR productCode, VARIANT_BOOL *didUpdate);
     2.9  
    2.10  	STDMETHOD(Startup)();
    2.11  
     3.1 --- a/pEpCOMServerAdapter.idl	Fri Nov 01 15:06:30 2019 +0100
     3.2 +++ b/pEpCOMServerAdapter.idl	Mon Nov 04 13:10:04 2019 +0100
     3.3 @@ -437,7 +437,7 @@
     3.4  		[in, defaultvalue(pEpEncPep)] pEpEncFormat encFormat);
     3.5  
     3.6  	// Trigger an immediate update check.
     3.7 -	[id(40)] HRESULT UpdateNow([in] BSTR productCode, [out] BOOL *didUpdate);
     3.8 +	[id(40)] HRESULT UpdateNow([in] BSTR productCode, [out] VARIANT_BOOL *didUpdate);
     3.9  
    3.10  	// Get a preview of the outgoint message rating
    3.11  	[id(41)] HRESULT OutgoingMessageRatingPreview([in] struct TextMessage *msg, [out, retval] pEpRating *rating);