From 995d9bcf3ef85618ac6bc44e3b0543f9e357e661 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 29 Aug 2015 17:51:10 +0000 Subject: oops... some more 'hides' warnings git-svn-id: http://svn.miranda-ng.org/main/trunk@15100 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Toaster/src/string_reference_wrapper.h | 2 +- plugins/Toaster/src/toast_notification.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Toaster/src') diff --git a/plugins/Toaster/src/string_reference_wrapper.h b/plugins/Toaster/src/string_reference_wrapper.h index d272ed14c7..4ce37d5245 100644 --- a/plugins/Toaster/src/string_reference_wrapper.h +++ b/plugins/Toaster/src/string_reference_wrapper.h @@ -25,7 +25,7 @@ public: template StringReferenceWrapper(_In_reads_(_) wchar_t(&stringRef)[_]) throw() { - UINT32 length = wcslen(stringRef); + size_t length = wcslen(stringRef); WindowsCreateStringReference(stringRef, length, &_header, &_hstring); } diff --git a/plugins/Toaster/src/toast_notification.cpp b/plugins/Toaster/src/toast_notification.cpp index fa3dcfa1ce..c3c4b506f4 100644 --- a/plugins/Toaster/src/toast_notification.cpp +++ b/plugins/Toaster/src/toast_notification.cpp @@ -186,7 +186,7 @@ HRESULT ToastNotification::CreateXml(_Outptr_ ABI::Windows::Data::Xml::Dom::IXml return SetTextValues(textValues, _countof(textValues), *xml); } -HRESULT ToastNotification::Create(_Outptr_ ABI::Windows::UI::Notifications::IToastNotification** notification) +HRESULT ToastNotification::Create(_Outptr_ ABI::Windows::UI::Notifications::IToastNotification** _notification) { Microsoft::WRL::ComPtr xml; HRESULT hr = CreateXml(&xml); @@ -198,7 +198,7 @@ HRESULT ToastNotification::Create(_Outptr_ ABI::Windows::UI::Notifications::IToa if (FAILED(hr)) return hr; - return hr = factory->CreateToastNotification(xml.Get(), notification); + return hr = factory->CreateToastNotification(xml.Get(), _notification); } HRESULT ToastNotification::Show() -- cgit v1.2.3