Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Fixed stack corruption in 64bit build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcope committed Mar 13, 2015
1 parent 0ad685a commit 804ce17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Common/Helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ namespace Helpers

HRESULT GetDocumentFromHwnd(_In_ const HWND browserHwnd, _Out_ CComPtr<IHTMLDocument2>& 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)
{
Expand Down
2 changes: 1 addition & 1 deletion Proxy/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
using namespace ATL;
using namespace std;

#include "Helpers.h";
#include "Helpers.h"
#include "Messages.h"

0 comments on commit 804ce17

Please sign in to comment.