From 6c2aeaece79c02136ab94f3365f0bdaeaff19dac Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Thu, 29 Jan 2009 11:15:18 +0100 Subject: [PATCH] winspool.drv: Remove superfluous pointer casts. --- dlls/winspool.drv/info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index 0343a9bc617..6212cc8339d 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); }