Andrew Talbot : dmloader: Constify some variables.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Apr 25 07:06:30 CDT 2007


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Tue Apr 24 20:51:37 2007 +0100

dmloader: Constify some variables.

---

 dlls/dmloader/debug.c |    4 ++--
 dlls/dmloader/debug.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/dmloader/debug.c b/dlls/dmloader/debug.c
index 7dba67d..fd13c42 100644
--- a/dlls/dmloader/debug.c
+++ b/dlls/dmloader/debug.c
@@ -56,7 +56,7 @@ const char *debugstr_fourcc (DWORD fourcc) {
 }
 
 /* DMUS_VERSION struct to string conversion for debug messages */
-const char *debugstr_dmversion (LPDMUS_VERSION version) {
+const char *debugstr_dmversion (const DMUS_VERSION *version) {
 	if (!version) return "'null'";
 	return wine_dbg_sprintf ("\'%i,%i,%i,%i\'",
 		HIWORD(version->dwVersionMS),LOWORD(version->dwVersionMS),
@@ -83,7 +83,7 @@ static const char *debugstr_month (DWORD dwMonth) {
 }
 
 /* FILETIME struct to string conversion for debug messages */
-const char *debugstr_filetime (LPFILETIME time) {
+const char *debugstr_filetime (const FILETIME *time) {
 	SYSTEMTIME sysTime;
 
 	if (!time) return "'null'";
diff --git a/dlls/dmloader/debug.h b/dlls/dmloader/debug.h
index 8d28cea..5a2daf4 100644
--- a/dlls/dmloader/debug.h
+++ b/dlls/dmloader/debug.h
@@ -50,9 +50,9 @@ extern const char *resolve_STREAM_SEEK (DWORD flag);
 /* FOURCC to string conversion for debug messages */
 extern const char *debugstr_fourcc (DWORD fourcc);
 /* DMUS_VERSION struct to string conversion for debug messages */
-extern const char *debugstr_dmversion (LPDMUS_VERSION version);
+extern const char *debugstr_dmversion (const DMUS_VERSION *version);
 /* FILETIME struct to string conversion for debug messages */
-extern const char *debugstr_filetime (LPFILETIME time);
+extern const char *debugstr_filetime (const FILETIME *time);
 /* returns name of given GUID */
 extern const char *debugstr_dmguid (const GUID *id);
 /* returns name of given error code */




More information about the wine-cvs mailing list