=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: dbghelp: Constify some character strings.
Alexandre Julliard
julliard at winehq.org
Mon Dec 16 13:02:32 CST 2013
Module: wine
Branch: master
Commit: d0665616255ae8b720e14e02072996b7aa198b00
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d0665616255ae8b720e14e02072996b7aa198b00
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Mon Dec 16 00:31:00 2013 +0100
dbghelp: Constify some character strings.
---
dlls/dbghelp/elf_module.c | 2 +-
dlls/dbghelp/macho_module.c | 2 +-
dlls/dbghelp/symbol.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index f77fbdd..b176143 100644
--- a/dlls/dbghelp/elf_module.c
+++ b/dlls/dbghelp/elf_module.c
@@ -1470,7 +1470,7 @@ static BOOL elf_search_and_load_file(struct process* pcs, const WCHAR* filename,
{
BOOL ret = FALSE;
struct module* module;
- static WCHAR S_libstdcPPW[] = {'l','i','b','s','t','d','c','+','+','\0'};
+ static const WCHAR S_libstdcPPW[] = {'l','i','b','s','t','d','c','+','+','\0'};
if (filename == NULL || *filename == '\0') return FALSE;
if ((module = module_is_already_loaded(pcs, filename)))
diff --git a/dlls/dbghelp/macho_module.c b/dlls/dbghelp/macho_module.c
index 08028b1..c6270c8 100644
--- a/dlls/dbghelp/macho_module.c
+++ b/dlls/dbghelp/macho_module.c
@@ -1160,7 +1160,7 @@ static BOOL macho_search_and_load_file(struct process* pcs, const WCHAR* filenam
{
BOOL ret = FALSE;
struct module* module;
- static WCHAR S_libstdcPPW[] = {'l','i','b','s','t','d','c','+','+','\0'};
+ static const WCHAR S_libstdcPPW[] = {'l','i','b','s','t','d','c','+','+','\0'};
const WCHAR* p;
TRACE("(%p/%p, %s, 0x%08lx, %p)\n", pcs, pcs->handle, debugstr_w(filename), load_addr,
diff --git a/dlls/dbghelp/symbol.c b/dlls/dbghelp/symbol.c
index 8c482c7..a82d1df 100644
--- a/dlls/dbghelp/symbol.c
+++ b/dlls/dbghelp/symbol.c
@@ -38,7 +38,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
WINE_DECLARE_DEBUG_CHANNEL(dbghelp_symt);
-static WCHAR starW[] = {'*','\0'};
+static const WCHAR starW[] = {'*','\0'};
static inline int cmp_addr(ULONG64 a1, ULONG64 a2)
{
More information about the wine-cvs
mailing list