Alexandre Julliard : mscms/tests: Use lstrlenA instead of strlen in ok() to avoid printf format warnings.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 14 06:49:59 CDT 2006


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jun 13 13:57:27 2006 +0200

mscms/tests: Use lstrlenA instead of strlen in ok() to avoid printf format warnings.

---

 dlls/mscms/tests/profile.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/mscms/tests/profile.c b/dlls/mscms/tests/profile.c
index c3f4b8e..27ef1c9 100644
--- a/dlls/mscms/tests/profile.c
+++ b/dlls/mscms/tests/profile.c
@@ -494,7 +494,7 @@ static void enum_registered_color_profil
             lstrcpynA(known_colorspaces[i].filename, profile, MAX_PATH);
             known_colorspaces[i].registered = TRUE;
             present++;
-            trace(" found %s, pointing to '%s' (%d chars)\n", known_colorspaces[i].szName, profile, strlen(profile));
+            trace(" found %s, pointing to '%s' (%d chars)\n", known_colorspaces[i].szName, profile, lstrlenA(profile));
         }
     }
     trace("Total profiles found: %ld.\n", present);
@@ -571,7 +571,7 @@ static void check_registry(void)
         }
         ok( dwType == REG_SZ, "RegEnumValueA() returned unexpected value type (%ld)\n", dwType );
         if (dwType != REG_SZ) break;
-        trace(" found '%s' value containing '%s' (%d chars)\n", szName, szData, strlen(szData));
+        trace(" found '%s' value containing '%s' (%d chars)\n", szName, szData, lstrlenA(szData));
     } 
 
     RegCloseKey( hkIcmKey );




More information about the wine-cvs mailing list