cmd: Remove some superfluous casts.
Michael Stefaniuc
mstefani at redhat.de
Wed Dec 3 22:31:43 CST 2008
---
programs/cmd/batch.c | 4 ++--
programs/cmd/directory.c | 2 +-
programs/cmd/wcmdmain.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/programs/cmd/batch.c b/programs/cmd/batch.c
index 3748f21..0044f70 100644
--- a/programs/cmd/batch.c
+++ b/programs/cmd/batch.c
@@ -89,7 +89,7 @@ void WCMD_batch (WCHAR *file, WCHAR *command, int called, WCHAR *startLabel, HAN
*/
prev_context = context;
- context = (BATCH_CONTEXT *)LocalAlloc (LMEM_FIXED, sizeof (BATCH_CONTEXT));
+ context = LocalAlloc (LMEM_FIXED, sizeof (BATCH_CONTEXT));
context -> h = h;
context -> command = command;
memset(context -> shift_count, 0x00, sizeof(context -> shift_count));
@@ -122,7 +122,7 @@ void WCMD_batch (WCHAR *file, WCHAR *command, int called, WCHAR *startLabel, HAN
* to the caller's caller.
*/
- LocalFree ((HANDLE)context);
+ LocalFree (context);
if ((prev_context != NULL) && (!called)) {
prev_context -> skip_rest = TRUE;
context = prev_context;
diff --git a/programs/cmd/directory.c b/programs/cmd/directory.c
index 2082d6e..c70fca5 100644
--- a/programs/cmd/directory.c
+++ b/programs/cmd/directory.c
@@ -938,7 +938,7 @@ void WCMD_getfileowner(WCHAR *filename, WCHAR *owner, int ownerlen) {
ULONG domainLen = MAXSTRING;
SID_NAME_USE nameuse;
- secBuffer = (LPBYTE) HeapAlloc(GetProcessHeap(),0,sizeNeeded * sizeof(BYTE));
+ secBuffer = HeapAlloc(GetProcessHeap(),0,sizeNeeded * sizeof(BYTE));
if(!secBuffer) return;
/* Get the owners security descriptor */
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index 454bd3c..0771e2e 100644
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -1348,7 +1348,7 @@ void WCMD_print_error (void) {
WCMD_output_asis_len(lpMsgBuf, lstrlen(lpMsgBuf),
GetStdHandle(STD_ERROR_HANDLE));
- LocalFree ((HLOCAL)lpMsgBuf);
+ LocalFree (lpMsgBuf);
WCMD_output_asis_len (newline, lstrlen(newline),
GetStdHandle(STD_ERROR_HANDLE));
return;
--
1.6.0.rc1
-------------- 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/20081204/e0339ace/attachment.pgp
More information about the wine-patches
mailing list