Module: wine Branch: master Commit: 0ad8eaa27a35d70908164696e35e091a89402ce9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0ad8eaa27a35d70908164696e3...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Sat May 26 23:23:10 2007 +0100
mpr: Constify some variables.
---
dlls/mpr/pwcache.c | 2 +- dlls/mpr/wnet.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/mpr/pwcache.c b/dlls/mpr/pwcache.c index bc8e25a..f8d3e32 100644 --- a/dlls/mpr/pwcache.c +++ b/dlls/mpr/pwcache.c @@ -50,7 +50,7 @@ static inline CHAR ctox( CHAR x ) 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 --git a/dlls/mpr/wnet.c b/dlls/mpr/wnet.c index 0abe0e8..9a6a9ef 100644 --- a/dlls/mpr/wnet.c +++ b/dlls/mpr/wnet.c @@ -449,7 +449,7 @@ static PWNetEnumerator _createContextEnumerator(DWORD dwScope, DWORD dwType, * 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 @@ static DWORD _thunkNetResourceArrayWToA(const NETRESOURCEW *lpNetArrayIn, * 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 _countProviderBytesW(PWNetProvider provider) }
static DWORD _enumerateProvidersW(PWNetEnumerator enumerator, LPDWORD lpcCount, - LPVOID lpBuffer, LPDWORD lpBufferSize) + LPVOID lpBuffer, const DWORD *lpBufferSize) { DWORD ret;