From fabe89337e104f6c61d6c7c212d6a9ae9ffa47f0 Mon Sep 17 00:00:00 2001 From: Abs62 Date: Mon, 24 Sep 2012 21:01:50 +0400 Subject: [PATCH] Win-specific: Fix commit #09b9e9a for 64-bit applications --- mouseover_win32/TextOutSpy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mouseover_win32/TextOutSpy.c b/mouseover_win32/TextOutSpy.c index f7f196ae..2a1e317b 100644 --- a/mouseover_win32/TextOutSpy.c +++ b/mouseover_win32/TextOutSpy.c @@ -78,6 +78,7 @@ LRESULT lr; if(n > 0) { if( IsWindow( GlobalData->ServerWND ) ) { #ifdef __WIN64 + GlobalData32->LastWND = HandleToLong( GlobalData->LastWND ); GlobalData32->CurMod.WordLen = n; GlobalData32->CurMod.BeginPos = 0; lstrcpyn( GlobalData32->CurMod.MatchedWord, GlobalData->CurMod.MatchedWord, sizeof( GlobalData32->CurMod.MatchedWord ) ); @@ -98,6 +99,7 @@ LRESULT lr; if (GlobalData->CurMod.WordLen > 0) { if( IsWindow( GlobalData->ServerWND ) ) { #ifdef __WIN64 + GlobalData32->LastWND = HandleToLong( GlobalData->LastWND ); GlobalData32->CurMod.WordLen = GlobalData->CurMod.WordLen; GlobalData32->CurMod.BeginPos = GlobalData->CurMod.BeginPos; lstrcpyn( GlobalData32->CurMod.MatchedWord, GlobalData->CurMod.MatchedWord, sizeof( GlobalData32->CurMod.MatchedWord ) ); @@ -113,6 +115,7 @@ LRESULT lr; if (GlobalData->CurMod.WordLen > 0 ) { if( IsWindow( GlobalData->ServerWND ) ) { #ifdef __WIN64 + GlobalData32->LastWND = HandleToLong( GlobalData->LastWND ); GlobalData32->CurMod.WordLen = GlobalData->CurMod.WordLen; GlobalData32->CurMod.BeginPos = GlobalData->CurMod.BeginPos; lstrcpyn( GlobalData32->CurMod.MatchedWord, GlobalData->CurMod.MatchedWord, sizeof( GlobalData32->CurMod.MatchedWord ) );