Andrew Talbot : regedit: Write-strings warning fix.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 7 07:56:06 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 973371c01d2c06a34b095daea45e7e9bcb9da71e
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=973371c01d2c06a34b095daea45e7e9bcb9da71e

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Thu Jul  6 18:55:19 2006 +0100

regedit: Write-strings warning fix.

---

 programs/regedit/listview.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/programs/regedit/listview.c b/programs/regedit/listview.c
index 6f9937b..64c54f0 100644
--- a/programs/regedit/listview.c
+++ b/programs/regedit/listview.c
@@ -165,7 +165,8 @@ #endif
             if (ValBuf) {
                 ListView_SetItemText(hwndLV, index, 2, ValBuf);
             } else {
-                ListView_SetItemText(hwndLV, index, 2, "(not set)");
+                TCHAR textT[] = {'(','n','o','t',' ','s','e','t',')',0};
+                ListView_SetItemText(hwndLV, index, 2, textT);
             }
             break;
         case REG_DWORD: {




More information about the wine-cvs mailing list