From 1c25ae96e679240cd9949c257e804a65c7ffb38c Mon Sep 17 00:00:00 2001 From: Christian Grasser Date: Thu, 18 Jun 2015 07:22:27 +0200 Subject: [PATCH] Correct issue with missing text in keyboard shortcut mapper grid --- PowerEditor/src/WinControls/Grid/BabyGrid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/WinControls/Grid/BabyGrid.cpp b/PowerEditor/src/WinControls/Grid/BabyGrid.cpp index ef833d5fe..274c677cf 100644 --- a/PowerEditor/src/WinControls/Grid/BabyGrid.cpp +++ b/PowerEditor/src/WinControls/Grid/BabyGrid.cpp @@ -1745,7 +1745,7 @@ LRESULT CALLBACK GridProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) int j,k,c; TCHAR tbuffer[1000]; //it was found, get it - SendMessage(BGHS[SelfIndex].hlist1,LB_GETTEXT,FindResult,(long)lParam); + SendMessage(BGHS[SelfIndex].hlist1,LB_GETTEXT,FindResult,(LPARAM)lParam); lstrcpy(tbuffer,(TCHAR*)lParam); k=lstrlen(tbuffer); c=0; @@ -3112,7 +3112,7 @@ int BinarySearchListBox(HWND lbhWnd,TCHAR* searchtext) if(lbcount < 12) { //not worth doing binary search, do regular search - FindResult = SendMessage(lbhWnd,LB_FINDSTRING,(unsigned int)-1,(LPARAM) searchtext); + FindResult = SendMessage(lbhWnd,LB_FINDSTRING,(unsigned int)-1,(LPARAM) searchtext); ReturnValue = FindResult; return ReturnValue; }