Michael Stefaniuc : winspool.drv: Remove superfluous pointer casts.
Alexandre Julliard
julliard at winehq.org
Thu Jan 29 09:15:40 CST 2009
Module: wine
Branch: master
Commit: 6c2aeaece79c02136ab94f3365f0bdaeaff19dac
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6c2aeaece79c02136ab94f3365f0bdaeaff19dac
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Jan 29 11:15:18 2009 +0100
winspool.drv: Remove superfluous pointer casts.
---
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);
}
More information about the wine-cvs
mailing list