Skip to content

Commit d3f8581

Browse files
Unbreak revBrowser compilation for Windows
1 parent 67de8e7 commit d3f8581

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

revbrowser/src/w32browser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,12 +1342,12 @@ bool CWebBrowser::GetImage(void*& r_data, int& r_length)
13421342
return t_success;
13431343
}
13441344

1345-
int CWebBrowser::GetWindowId(void)
1345+
uintptr_t CWebBrowser::GetWindowId(void)
13461346
{
1347-
return (int)hostwindow;
1347+
return uintptr_t(hostwindow);
13481348
}
13491349

1350-
void CWebBrowser::SetWindowId(int p_new_id)
1350+
void CWebBrowser::SetWindowId(uintptr_t p_new_id)
13511351
{
13521352
HWND t_new_window;
13531353
t_new_window = (HWND)p_new_id;

revbrowser/src/w32browser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class CWebBrowser: public CWebBrowserBase
125125
int GetFormattedHeight(void);
126126
int GetFormattedWidth(void);
127127
void GetFormattedRect(int &r_left, int &t_top, int &r_right, int &r_bottom);
128-
int GetWindowId(void);
128+
uintptr_t GetWindowId(void);
129129
char *GetUserAgent(void);
130130

131131
void SetScale(bool willscale);
@@ -143,7 +143,7 @@ class CWebBrowser: public CWebBrowserBase
143143
void SetInst(int linst);
144144
void SetVScroll(int p_vscroll_pixels);
145145
void SetHScroll(int p_hscroll_pixels);
146-
void SetWindowId(int id);
146+
void SetWindowId(uintptr_t id);
147147
void SetUserAgent(const char *p_user_agent);
148148

149149
virtual void AddJavaScriptHandler(const char *p_handler);

0 commit comments

Comments
 (0)