Batch #10110 by ragnarok-clanker: forced by an admin (0 lower score(s), 40 changed function(s)); checked with 495 compiled unit(s), including every includer of Source/Client/Application/ApplicationActivation.h, Source/Client/Application/Launcher.h, Source/Client/Browser/BrowserClientSite.h, Source/Client/Browser/BrowserPopupDispatch.h, Source/Client/Browser/WebBrowser.h, Source/Client/Browser/WebEventReceiver.h, Source/Client/Mode/CLoginMode.h, Source/Client/Mode/CMode.h, Source/Client/Mode/ModeTooltip.h, Source/UI/Window/UIWindowMgr.h, Source/Client/Browser/BrowserAddressBar.h, Source/Client/Browser/BrowserAddressEdit.h, Source/Client/Browser/BrowserClose.h, Source/Client/Browser/BrowserCreation.h, Source/Client/Browser/BrowserCursor.h, Source/Client/Browser/BrowserFactory.h, Source/Client/Browser/BrowserFrame.h, Source/Client/Browser/BrowserHostWindow.h, Source/Client/Browser/BrowserInputHandoff.h, Source/Client/Browser/BrowserInterface.h, Source/Client/Browser/BrowserMessages.h, Source/Client/Browser/BrowserRegistry.h, Source/Client/Browser/BrowserSiteAttachment.h, Source/Client/Browser/BrowserWindowSizing.h, Source/UI/Window/WindowFrameUpdate.h. Deletes: Source/Client/Browser/BrowserAddressBar.h, Source/Client/Browser/BrowserAddressEdit.h, Source/Client/Browser/BrowserClose.h, Source/Client/Browser/BrowserCreation.h, Source/Client/Browser/BrowserCursor.h, Source/Client/Browser/BrowserFactory.h, Source/Client/Browser/BrowserFrame.h, Source/Client/Browser/BrowserHostWindow.h, Source/Client/Browser/BrowserInputHandoff.h, Source/Client/Browser/BrowserInterface.h, Source/Client/Browser/BrowserMessages.h, Source/Client/Browser/BrowserRegistry.h, Source/Client/Browser/BrowserSiteAttachment.h, Source/Client/Browser/BrowserWindowSizing.h, Source/UI/Window/WindowFrameUpdate.h
30 lines
782 B
C++
30 lines
782 B
C++
#include "Client/Browser/WebBrowser.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
|
|
#include <oleauto.h>
|
|
|
|
// GLOBAL: gl_24370
|
|
WNDPROC lpPrevWndFunc;
|
|
|
|
// OFFSET: 0x00AB20F0
|
|
// FUNCTION: fn_17411
|
|
void __fastcall sub_AB20F0(BSTR* address) {
|
|
SysFreeString(*address);
|
|
}
|
|
|
|
// OFFSET: 0x00AB21F0
|
|
// FUNCTION: fn_17412
|
|
LRESULT CALLBACK BrowserAddressEditProc(HWND window, UINT message, WPARAM value, LPARAM flags) {
|
|
if (value == VK_RETURN) {
|
|
if (message == WM_KEYUP || message == WM_CHAR) {
|
|
return 0;
|
|
}
|
|
|
|
if (message == WM_KEYDOWN && g_windowMgr.activeBrowser) {
|
|
SendMessageA(g_windowMgr.activeBrowser->host, WM_COMMAND, static_cast<WPARAM>(BrowserCommand::Navigate), 0);
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
return CallWindowProcA(lpPrevWndFunc, window, message, value, flags);
|
|
}
|