Code enhancement: Make Globallock and GlobalUnlock symetric
This commit is contained in:
parent
ebe0b1b189
commit
30e545a5f4
@ -377,7 +377,7 @@ void Notepad_plus::command(int id)
|
||||
_pEditView->execute(SCI_REPLACESEL, 0, reinterpret_cast<LPARAM>(""));
|
||||
_pEditView->execute(SCI_ADDTEXT, *lpLen, reinterpret_cast<LPARAM>(lpchar));
|
||||
|
||||
GlobalUnlock(hglb);
|
||||
GlobalUnlock(hglbLen);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ ClipboardData ClipboardHistoryPanel::getClipboadData()
|
||||
{
|
||||
clipboardData.push_back(static_cast<unsigned char>(lpchar[i]));
|
||||
}
|
||||
GlobalUnlock(hglb);
|
||||
GlobalUnlock(hglbLen);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -76,7 +76,8 @@ ClipboardData ClipboardHistoryPanel::getClipboadData()
|
||||
clipboardData.push_back(static_cast<unsigned char>(lpchar[i]));
|
||||
}
|
||||
}
|
||||
GlobalUnlock(hglb);
|
||||
GlobalUnlock(hglb);
|
||||
GlobalUnlock(hglb);
|
||||
}
|
||||
}
|
||||
CloseClipboard();
|
||||
|
@ -687,7 +687,7 @@ void WindowsDlg::resetSelection()
|
||||
{
|
||||
if (*itr == curSel)
|
||||
{
|
||||
ListView_SetItemState(_hList, pos, LVIS_SELECTED|LVIS_FOCUSED, LVIS_SELECTED|LVIS_FOCUSED)
|
||||
ListView_SetItemState(_hList, pos, LVIS_SELECTED | LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user