mmsystem.h: LP(W)STR => LPC(W)STR

Unknown felix.nawothnig at t-online.de
Fri Nov 12 17:57:56 CST 2004


Those members should, albeit the name, be const - checked against MSDN  
(http://tinyurl.com/6sbjq) and the SDK headers. Fixes some warnings  
when compiling WASTE.

(Yes, hungarian notation sucks >:)

Changelog:
	Make strings in MCI_OPEN_PARMS const.
-------------- next part --------------
Index: include/mmsystem.h
===================================================================
RCS file: /home/wine/wine/include/mmsystem.h,v
retrieving revision 1.74
diff -u -r1.74 mmsystem.h
--- include/mmsystem.h	9 Aug 2004 18:44:45 -0000	1.74
+++ include/mmsystem.h	12 Nov 2004 23:36:48 -0000
@@ -1923,17 +1923,17 @@
 typedef struct {
        DWORD_PTR       dwCallback;
 	MCIDEVICEID	wDeviceID;
-	LPSTR		lpstrDeviceType;
-	LPSTR		lpstrElementName;
-	LPSTR		lpstrAlias;
+	LPCSTR		lpstrDeviceType;
+	LPCSTR		lpstrElementName;
+	LPCSTR		lpstrAlias;
 } MCI_OPEN_PARMSA, *LPMCI_OPEN_PARMSA;
 
 typedef struct {
        DWORD_PTR       dwCallback;
 	MCIDEVICEID	wDeviceID;
-	LPWSTR		lpstrDeviceType;
-	LPWSTR		lpstrElementName;
-	LPWSTR		lpstrAlias;
+	LPCWSTR		lpstrDeviceType;
+	LPCWSTR		lpstrElementName;
+	LPCWSTR		lpstrAlias;
 } MCI_OPEN_PARMSW, *LPMCI_OPEN_PARMSW;
 
 DECL_WINELIB_TYPE_AW(MCI_OPEN_PARMS)


More information about the wine-patches mailing list