diff options
author | Rr42 | 2018-06-22 20:48:05 +0530 |
---|---|---|
committer | Rr42 | 2018-06-22 20:48:05 +0530 |
commit | 7c5b6c7b6750b1af91225a214fb1af3c053ec3fe (patch) | |
tree | f7238dcada25d9f3236f269c8dc0a0e978829286 /ldmicro/lib/linuxUI | |
parent | 21af660f0da7cddd80033d1e4590468f618bb5ab (diff) | |
download | LDMicroGtk-7c5b6c7b6750b1af91225a214fb1af3c053ec3fe.tar.gz LDMicroGtk-7c5b6c7b6750b1af91225a214fb1af3c053ec3fe.tar.bz2 LDMicroGtk-7c5b6c7b6750b1af91225a214fb1af3c053ec3fe.zip |
fixed bug where menu shortcuts without modifiers did not work
Diffstat (limited to 'ldmicro/lib/linuxUI')
-rw-r--r-- | ldmicro/lib/linuxUI/linuxUI.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ldmicro/lib/linuxUI/linuxUI.cpp b/ldmicro/lib/linuxUI/linuxUI.cpp index 9891d70..f5029b9 100644 --- a/ldmicro/lib/linuxUI/linuxUI.cpp +++ b/ldmicro/lib/linuxUI/linuxUI.cpp @@ -396,6 +396,7 @@ void TextOut(HWID hWid, HCRDC hcr, int nXStart, int nYStart, LPCTSTR lpString, i if (resize_flag) gtk_widget_set_size_request(hWid, width, height); + char* text = (char*)malloc(cchString); strncpy(text, lpString, cchString); text[cchString] = '\0'; |