Skip to content

Commit 84c41d8

Browse files
committed
Unicode characters in message box not displayed correctly #262
- use unicode version of MessageBoxA -> MessageBox
1 parent f74f266 commit 84c41d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PythonScript/src/NotepadPlusWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ int NotepadPlusWrapper::messageBox(const char *message, const char *title, UINT
669669
if (!flags) { flags = 0; }
670670
int retVal;
671671
GILRelease release;
672-
retVal = ::MessageBoxA(m_nppHandle, message, title, flags);
672+
retVal = ::MessageBox(m_nppHandle, WcharMbcsConverter::char2tchar(message).get(), WcharMbcsConverter::char2tchar(title).get(), flags);
673673

674674
return retVal;
675675
}

0 commit comments

Comments
 (0)