diff options
Diffstat (limited to 'redo/containerctrls_windows.c')
| -rw-r--r-- | redo/containerctrls_windows.c | 5 |
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); |
