mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 12:04:51 +00:00
Fix a bug. (Thanks to Ged).
svn path=/trunk/; revision=26329
This commit is contained in:
parent
7f235d3886
commit
abe25cf75b
2 changed files with 6 additions and 2 deletions
|
@ -262,8 +262,11 @@ DlgProc(HWND hDlg,
|
|||
|
||||
ch = SendMessage(hMap, FM_GETCHAR, 0, 0);
|
||||
|
||||
AddCharToSelection(GetDlgItem(hDlg, IDC_TEXTBOX),
|
||||
ch);
|
||||
if (ch)
|
||||
{
|
||||
AddCharToSelection(GetDlgItem(hDlg, IDC_TEXTBOX),
|
||||
ch);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -492,6 +492,7 @@ MapWndProc(HWND hwnd,
|
|||
|
||||
case FM_GETCHAR:
|
||||
{
|
||||
if (!infoPtr->pActiveCell) return NULL;
|
||||
return infoPtr->pActiveCell->ch;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue