mpr: Constify some variables

Andrew Talbot Andrew.Talbot at talbotville.com
Sat May 26 17:23:10 CDT 2007


Changelog:
    mpr: Constify some variables.

diff -urN a/dlls/mpr/pwcache.c b/dlls/mpr/pwcache.c
--- a/dlls/mpr/pwcache.c	2006-10-12 21:30:56.000000000 +0100
+++ b/dlls/mpr/pwcache.c	2007-05-26 23:02:48.000000000 +0100
@@ -50,7 +50,7 @@
     return -1;
 }
 
-static LPSTR MPR_GetValueName( LPSTR pbResource, WORD cbResource, BYTE nType )
+static LPSTR MPR_GetValueName( LPCSTR pbResource, WORD cbResource, BYTE nType )
 {
     LPSTR name;
     DWORD  i;
diff -urN a/dlls/mpr/wnet.c b/dlls/mpr/wnet.c
--- a/dlls/mpr/wnet.c	2007-05-23 21:55:15.000000000 +0100
+++ b/dlls/mpr/wnet.c	2007-05-26 23:03:02.000000000 +0100
@@ -449,7 +449,7 @@
  * failure.
  */
 static DWORD _thunkNetResourceArrayWToA(const NETRESOURCEW *lpNetArrayIn,
- LPDWORD lpcCount, LPVOID lpBuffer, LPDWORD lpBufferSize)
+ const DWORD *lpcCount, LPVOID lpBuffer, const DWORD *lpBufferSize)
 {
     DWORD i, numToThunk, totalBytes, ret;
     LPSTR strNext;
@@ -534,7 +534,7 @@
  * failure.
  */
 static DWORD _thunkNetResourceArrayAToW(const NETRESOURCEA *lpNetArrayIn,
- LPDWORD lpcCount, LPVOID lpBuffer, LPDWORD lpBufferSize)
+ const DWORD *lpcCount, LPVOID lpBuffer, const DWORD *lpBufferSize)
 {
     DWORD i, numToThunk, totalBytes, ret;
     LPWSTR strNext;
@@ -876,7 +876,7 @@
 }
 
 static DWORD _enumerateProvidersW(PWNetEnumerator enumerator, LPDWORD lpcCount,
- LPVOID lpBuffer, LPDWORD lpBufferSize)
+ LPVOID lpBuffer, const DWORD *lpBufferSize)
 {
     DWORD ret;
 



More information about the wine-patches mailing list