Andrew Talbot : regedit: Write-strings warning fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jul 27 05:42:29 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 510b6d3b470585196f471e7a2a3d7bb6d32d88a9
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=510b6d3b470585196f471e7a2a3d7bb6d32d88a9
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Wed Jul 26 19:32:29 2006 +0100
regedit: Write-strings warning fix.
---
programs/regedit/listview.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/regedit/listview.c b/programs/regedit/listview.c
index 64c54f0..7b74ac4 100644
--- a/programs/regedit/listview.c
+++ b/programs/regedit/listview.c
@@ -158,14 +158,14 @@ #endif
index = ListView_InsertItem(hwndLV, &item);
if (index != -1) {
/* LPTSTR pszText = NULL; */
- LPTSTR pszText = _T("(cannot display value)");
+ static TCHAR pszText[] = {'(','c','a','n','n','o','t',' ','d','i','s','p','l','a','y',' ','v','a','l','u','e',')',0};
switch (dwValType) {
case REG_SZ:
case REG_EXPAND_SZ:
if (ValBuf) {
ListView_SetItemText(hwndLV, index, 2, ValBuf);
} else {
- TCHAR textT[] = {'(','n','o','t',' ','s','e','t',')',0};
+ static TCHAR textT[] = {'(','n','o','t',' ','s','e','t',')',0};
ListView_SetItemText(hwndLV, index, 2, textT);
}
break;
More information about the wine-cvs
mailing list