Skip to content
This repository has been archived by the owner on Aug 12, 2018. It is now read-only.

Commit

Permalink
Fix a few variable reassignments.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Jun 22, 2014
1 parent 2b99749 commit b2e8911
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Notepad2.c
Expand Up @@ -2869,10 +2869,9 @@ LRESULT MsgCommand(HWND hwnd,WPARAM wParam,LPARAM lParam)
case IDM_EDIT_SWAP:
if (SendMessage(hwndEdit,SCI_GETSELECTIONEND,0,0) -
SendMessage(hwndEdit,SCI_GETSELECTIONSTART,0,0) == 0) {
int iNewPos = -1;
int iPos = (int)SendMessage(hwndEdit,SCI_GETCURRENTPOS,0,0);
SendMessage(hwndEdit,SCI_PASTE,0,0);
iNewPos = (int)SendMessage(hwndEdit,SCI_GETCURRENTPOS,0,0);
int iNewPos = (int)SendMessage(hwndEdit,SCI_GETCURRENTPOS,0,0);
SendMessage(hwndEdit,SCI_SETSEL,iPos,iNewPos);
SendMessage(hwnd,WM_COMMAND,MAKELONG(IDM_EDIT_CLEARCLIPBOARD,1),0);
}
Expand Down Expand Up @@ -4571,7 +4570,7 @@ LRESULT MsgCommand(HWND hwnd,WPARAM wParam,LPARAM lParam)
case CMD_WEBACTION1:
case CMD_WEBACTION2:
{
BOOL bCmdEnabled = FALSE;
BOOL bCmdEnabled;
LPWSTR lpszTemplateName;
WCHAR szCmdTemplate[256];
char mszSelection[512] = { 0 };
Expand Down

0 comments on commit b2e8911

Please sign in to comment.