Andrew Talbot : netapi32: Constify a variable.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 20 05:25:09 CST 2007


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Mon Feb 19 16:35:42 2007 +0000

netapi32: Constify a variable.

---

 dlls/netapi32/nbt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/netapi32/nbt.c b/dlls/netapi32/nbt.c
index b0a86d6..c09b8fa 100644
--- a/dlls/netapi32/nbt.c
+++ b/dlls/netapi32/nbt.c
@@ -1028,7 +1028,7 @@ static UCHAR NetBTCall(void *adapt, PNCB ncb, void **sess)
                     ret = NRC_CMDTMO;
                 else
                 {
-                    static UCHAR fakedCalledName[] = "*SMBSERVER";
+                    static const UCHAR fakedCalledName[] = "*SMBSERVER";
                     const UCHAR *calledParty = cacheEntry->nbname[0] == '*'
                      ? fakedCalledName : cacheEntry->nbname;
 




More information about the wine-cvs mailing list