winspool.drv: Remove superfluous pointer casts.
Michael Stefaniuc
mstefani at redhat.de
Thu Jan 29 04:15:18 CST 2009
---
dlls/winspool.drv/info.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index 0343a9b..6212cc8 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -2805,9 +2805,9 @@ static HKEY WINSPOOL_OpenDriverReg( LPCVOID pEnvironment, BOOL unicode)
{
/* pEnvironment was an ANSI-String: convert to unicode first */
LPWSTR buffer;
- INT len = MultiByteToWideChar(CP_ACP, 0, (LPCSTR)pEnvironment, -1, NULL, 0);
+ INT len = MultiByteToWideChar(CP_ACP, 0, pEnvironment, -1, NULL, 0);
buffer = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
- if (buffer) MultiByteToWideChar(CP_ACP, 0, (LPCSTR)pEnvironment, -1, buffer, len);
+ if (buffer) MultiByteToWideChar(CP_ACP, 0, pEnvironment, -1, buffer, len);
env = validate_envW(buffer);
HeapFree(GetProcessHeap(), 0, buffer);
}
--
1.6.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090129/d3f2ac0a/attachment-0001.pgp
More information about the wine-patches
mailing list