summaryrefslogtreecommitdiff
path: root/redo/common_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/common_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/common_windows.c')
-rw-r--r--redo/common_windows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/redo/common_windows.c b/redo/common_windows.c
index e317595..3999953 100644
--- a/redo/common_windows.c
+++ b/redo/common_windows.c
@@ -8,14 +8,14 @@ LRESULT getWindowTextLen(HWND hwnd)
return SendMessageW(hwnd, WM_GETTEXTLENGTH, 0, 0);
}
-void getWindowText(HWND hwnd, WPARAM n, LPCWSTR buf)
+void getWindowText(HWND hwnd, WPARAM n, LPWSTR buf)
{
SetLastError(0);
if (SendMessageW(hwnd, WM_GETTEXT, n + 1, (LPARAM) buf) != n)
xpanic("WM_GETTEXT did not copy the correct number of characters out", GetLastError());
}
-void setWindowText(HWND hwnd, LPCWSTR text)
+void setWindowText(HWND hwnd, LPWSTR text)
{
switch (SendMessageW(hwnd, WM_SETTEXT, 0, (LPARAM) text)) {
case FALSE: