Skip to content

Commit 4e2b528

Browse files
committed
Init interface dlg properly
1 parent 541706e commit 4e2b528

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NppJSONViewer/NppJsonViewer/JsonViewDlg.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ void JsonViewDlg::ShowDlg(bool bShow)
3333
{
3434
if (!isCreated())
3535
{
36+
init(_hInst, _hParent);
3637
tTbData data = { 0 };
3738
create(&data);
3839

NppJSONViewer/external/npp/DockingDlgInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class DockingDlgInterface : public StaticDialog
4141
void create(tTbData * data, bool isRTL = false)
4242
{
4343
StaticDialog::create(_dlgID, isRTL);
44-
::GetWindowText(_hSelf, _pluginName, sizeof(_pluginName));
44+
::GetWindowText(_hSelf, _pluginName, _countof(_pluginName));
4545

4646
// user information
4747
data->hClient = _hSelf;

0 commit comments

Comments
 (0)