Module: wine Branch: master Commit: 003e8d2797878cbe3fc4f5945c440b74c63a625f URL: http://source.winehq.org/git/wine.git/?a=commit;h=003e8d2797878cbe3fc4f5945c...
Author: Frédéric Delanoy frederic.delanoy@gmail.com Date: Wed Sep 7 11:00:53 2011 +0200
cmd: Use correct type instead of void* for prev_context field of BATCH_CONTEXT struct.
---
programs/cmd/wcmd.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/cmd/wcmd.h b/programs/cmd/wcmd.h index 3cf9d4b..c8a7e6d 100644 --- a/programs/cmd/wcmd.h +++ b/programs/cmd/wcmd.h @@ -120,12 +120,12 @@ void WCMD_execute (const WCHAR *orig_command, const WCHAR *redirects,
/* Data structure to hold context when executing batch files */
-typedef struct { +typedef struct _BATCH_CONTEXT { WCHAR *command; /* The command which invoked the batch file */ HANDLE h; /* Handle to the open batch file */ WCHAR *batchfileW; /* Name of same */ int shift_count[10]; /* Offset in terms of shifts for %0 - %9 */ - void *prev_context; /* Pointer to the previous context block */ + struct _BATCH_CONTEXT *prev_context; /* Pointer to the previous context block */ BOOL skip_rest; /* Skip the rest of the batch program and exit */ CMD_LIST *toExecute; /* Commands left to be executed */ } BATCH_CONTEXT;