mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Win-specific: Fix commit #09b9e9a for 64-bit applications
This commit is contained in:
parent
ffb24d9a0b
commit
fabe89337e
|
@ -78,6 +78,7 @@ LRESULT lr;
|
||||||
if(n > 0) {
|
if(n > 0) {
|
||||||
if( IsWindow( GlobalData->ServerWND ) ) {
|
if( IsWindow( GlobalData->ServerWND ) ) {
|
||||||
#ifdef __WIN64
|
#ifdef __WIN64
|
||||||
|
GlobalData32->LastWND = HandleToLong( GlobalData->LastWND );
|
||||||
GlobalData32->CurMod.WordLen = n;
|
GlobalData32->CurMod.WordLen = n;
|
||||||
GlobalData32->CurMod.BeginPos = 0;
|
GlobalData32->CurMod.BeginPos = 0;
|
||||||
lstrcpyn( GlobalData32->CurMod.MatchedWord, GlobalData->CurMod.MatchedWord, sizeof( GlobalData32->CurMod.MatchedWord ) );
|
lstrcpyn( GlobalData32->CurMod.MatchedWord, GlobalData->CurMod.MatchedWord, sizeof( GlobalData32->CurMod.MatchedWord ) );
|
||||||
|
@ -98,6 +99,7 @@ LRESULT lr;
|
||||||
if (GlobalData->CurMod.WordLen > 0) {
|
if (GlobalData->CurMod.WordLen > 0) {
|
||||||
if( IsWindow( GlobalData->ServerWND ) ) {
|
if( IsWindow( GlobalData->ServerWND ) ) {
|
||||||
#ifdef __WIN64
|
#ifdef __WIN64
|
||||||
|
GlobalData32->LastWND = HandleToLong( GlobalData->LastWND );
|
||||||
GlobalData32->CurMod.WordLen = GlobalData->CurMod.WordLen;
|
GlobalData32->CurMod.WordLen = GlobalData->CurMod.WordLen;
|
||||||
GlobalData32->CurMod.BeginPos = GlobalData->CurMod.BeginPos;
|
GlobalData32->CurMod.BeginPos = GlobalData->CurMod.BeginPos;
|
||||||
lstrcpyn( GlobalData32->CurMod.MatchedWord, GlobalData->CurMod.MatchedWord, sizeof( GlobalData32->CurMod.MatchedWord ) );
|
lstrcpyn( GlobalData32->CurMod.MatchedWord, GlobalData->CurMod.MatchedWord, sizeof( GlobalData32->CurMod.MatchedWord ) );
|
||||||
|
@ -113,6 +115,7 @@ LRESULT lr;
|
||||||
if (GlobalData->CurMod.WordLen > 0 ) {
|
if (GlobalData->CurMod.WordLen > 0 ) {
|
||||||
if( IsWindow( GlobalData->ServerWND ) ) {
|
if( IsWindow( GlobalData->ServerWND ) ) {
|
||||||
#ifdef __WIN64
|
#ifdef __WIN64
|
||||||
|
GlobalData32->LastWND = HandleToLong( GlobalData->LastWND );
|
||||||
GlobalData32->CurMod.WordLen = GlobalData->CurMod.WordLen;
|
GlobalData32->CurMod.WordLen = GlobalData->CurMod.WordLen;
|
||||||
GlobalData32->CurMod.BeginPos = GlobalData->CurMod.BeginPos;
|
GlobalData32->CurMod.BeginPos = GlobalData->CurMod.BeginPos;
|
||||||
lstrcpyn( GlobalData32->CurMod.MatchedWord, GlobalData->CurMod.MatchedWord, sizeof( GlobalData32->CurMod.MatchedWord ) );
|
lstrcpyn( GlobalData32->CurMod.MatchedWord, GlobalData->CurMod.MatchedWord, sizeof( GlobalData32->CurMod.MatchedWord ) );
|
||||||
|
|
Loading…
Reference in a new issue