Battle.net installer now working. It crashes when the login page loads, but that seems to be fixed in upcoming version and the controls did read.
This commit is contained in:
1 parent
38358ad27a
commit
e0c83859f5
13 files changed
+753
-11
No files matched your search
+19
-1
@@ -3,6 +3,7 @@
|
||||
#include "menu_bridge.h"
|
||||
#include "control_class.h"
|
||||
#include "notification_hook.h"
|
||||
#include "bootstrapper_hook.h"
|
||||
#include <commctrl.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -288,8 +289,25 @@ BOOL wine_access_watch_edit(HWND window) {
|
||||
|
||||
__declspec(dllexport) LRESULT CALLBACK WineAccessInputHook(int code, WPARAM wp, LPARAM lp) {
|
||||
if (code >= 0 && wp == PM_REMOVE) {
|
||||
wine_access_watch_notifications();
|
||||
const MSG *bootstrapperMessage = (const MSG *)lp;
|
||||
HWND focus = GetFocus();
|
||||
WCHAR className[128];
|
||||
if (focus && GetClassNameW(focus, className, ARRAYSIZE(className)) &&
|
||||
!lstrcmpW(className, L"Blizzard Bootstrapper")) {
|
||||
HWND bridge = FindWindowW(WINE_ACCESS_MENU_CLASS, NULL);
|
||||
// Associate readiness with this reader instance, not just a DLL left
|
||||
// mapped in the application after the previous reader exited.
|
||||
if (bridge && GetPropW(focus, BOOTSTRAPPER_STATE_READY) != (HANDLE)bridge) {
|
||||
RemovePropW(focus, BOOTSTRAPPER_STATE_PENDING);
|
||||
SetPropW(focus, BOOTSTRAPPER_STATE_READY, (HANDLE)bridge);
|
||||
}
|
||||
}
|
||||
if (bootstrapperMessage->message == RegisterWindowMessageW(BOOTSTRAPPER_STATE_MESSAGE)) {
|
||||
wine_access_query_bootstrapper_state(bootstrapperMessage->hwnd,
|
||||
FindWindowW(WINE_ACCESS_MENU_CLASS, NULL));
|
||||
RemovePropW(bootstrapperMessage->hwnd, BOOTSTRAPPER_STATE_PENDING);
|
||||
}
|
||||
wine_access_watch_notifications();
|
||||
EditState *state;
|
||||
if (watch_edit(focus, &state)) {
|
||||
SendMessageW(focus, RegisterWindowMessageW(EDIT_FOCUS_MESSAGE), 0, 0);
|
||||
|
||||
Reference in new issue
Block a user