Alexandre Julliard : netapi32: Don' t use sizeof in traces to avoid printf format warnings.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 14 06:50:52 CDT 2006


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jun 13 14:11:04 2006 +0200

netapi32: Don't use sizeof in traces to avoid printf format warnings.

---

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

diff --git a/dlls/netapi32/netbios.c b/dlls/netapi32/netbios.c
index 1dd0f01..71b7105 100644
--- a/dlls/netapi32/netbios.c
+++ b/dlls/netapi32/netbios.c
@@ -135,8 +135,7 @@ BOOL NetBIOSRegisterTransport(ULONG id, 
         ret = FALSE;
     else if (gNumTransports >= sizeof(gTransports) / sizeof(gTransports[0]))
     {
-        FIXME("You tried to add %d transports, but I only have space for %d\n",
-         gNumTransports + 1, sizeof(gTransports) / sizeof(gTransports[0]));
+        FIXME("Too many transports %d\n", gNumTransports + 1);
         ret = FALSE;
     }
     else




More information about the wine-cvs mailing list