=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: winetest: Constify a character string.

Alexandre Julliard julliard at winehq.org
Fri Dec 20 10:45:29 CST 2013


Module: wine
Branch: master
Commit: a2473d2985226ed5205ac3d2c11334d95d1bc132
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a2473d2985226ed5205ac3d2c11334d95d1bc132

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Thu Dec 19 22:25:13 2013 +0100

winetest: Constify a character string.

---

 programs/winetest/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/winetest/main.c b/programs/winetest/main.c
index 92a504e..cde618f 100644
--- a/programs/winetest/main.c
+++ b/programs/winetest/main.c
@@ -121,7 +121,7 @@ static char * get_file_version(char * file_name)
         char * data = heap_alloc(size);
         if (data) {
             if (GetFileVersionInfoA(file_name, handle, size, data)) {
-                static char backslash[] = "\\";
+                static const char backslash[] = "\\";
                 VS_FIXEDFILEINFO *pFixedVersionInfo;
                 UINT len;
                 if (VerQueryValueA(data, backslash, (LPVOID *)&pFixedVersionInfo, &len)) {




More information about the wine-cvs mailing list