diff --git a/Common/Helpers.cpp b/Common/Helpers.cpp index e94485b..b9d671d 100644 --- a/Common/Helpers.cpp +++ b/Common/Helpers.cpp @@ -186,8 +186,8 @@ namespace Helpers HRESULT GetDocumentFromHwnd(_In_ const HWND browserHwnd, _Out_ CComPtr& spDocument) { - DWORD messageResult; - LRESULT sendMessageResult = ::SendMessageTimeoutW(browserHwnd, Helpers::GetHtmlDocumentMessage(), 0L, 0L, SMTO_ABORTIFHUNG, 2000, (DWORD_PTR*)&messageResult); + DWORD_PTR messageResult = 0; + LRESULT sendMessageResult = ::SendMessageTimeoutW(browserHwnd, Helpers::GetHtmlDocumentMessage(), 0L, 0L, SMTO_ABORTIFHUNG, 2000, &messageResult); if (sendMessageResult != 0 && messageResult != 0) { diff --git a/Proxy/stdafx.h b/Proxy/stdafx.h index 0aeb7cd..bdb438e 100644 --- a/Proxy/stdafx.h +++ b/Proxy/stdafx.h @@ -30,5 +30,5 @@ using namespace ATL; using namespace std; -#include "Helpers.h"; +#include "Helpers.h" #include "Messages.h"