summaryrefslogtreecommitdiff
path: root/redo/containerctrls_windows.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-01 18:25:59 -0400
committerPietro Gagliardi <[email protected]>2014-08-01 18:25:59 -0400
commit80828b8a7d2273d5f35b7114c8dfc10605fc5df8 (patch)
treed7897af6491bcbe1b0f1ede039220e936e5fe740 /redo/containerctrls_windows.c
parent7f027bae3c34afb1261ef60aa3754676f0fa648a (diff)
Changed LPCWSTR to LPWSTR in the Windows code as the C means const and there are a few cases of const->non-const conversions as a result.
Diffstat (limited to 'redo/containerctrls_windows.c')
-rw-r--r--redo/containerctrls_windows.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/redo/containerctrls_windows.c b/redo/containerctrls_windows.c
index b5f3a97..6895ec4 100644
--- a/redo/containerctrls_windows.c
+++ b/redo/containerctrls_windows.c
@@ -4,7 +4,7 @@
#include "_cgo_export.h"
/* provided for cgo's benefit */
-LPCWSTR xWC_TABCONTROL = WC_TABCONTROL;
+LPWSTR xWC_TABCONTROL = WC_TABCONTROL;
static LRESULT CALLBACK tabSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_PTR id, DWORD_PTR data)
{
@@ -42,14 +42,13 @@ void setTabSubclass(HWND hwnd, void *data)
xpanic("error subclassing Tab to give it its own event handler", GetLastError());
}
-void tabAppend(HWND hwnd, LPCWSTR name)
+void tabAppend(HWND hwnd, LPWSTR name)
{
TCITEM item;
LRESULT n;
ZeroMemory(&item, sizeof (TCITEM));
item.mask = TCIF_TEXT;
- /* TODO the C means const; change everything to use LPWSTR instead */
item.pszText = name;
/* MSDN's example code uses the first invalid index directly for this */
n = SendMessageW(hwnd, TCM_GETITEMCOUNT, 0, 0);