Commit dffba6aa authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

kernel32: Remove unneeded address-of operators from array names.

parent 3427b943
...@@ -709,7 +709,7 @@ DWORD __wine_emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT86 *context ) ...@@ -709,7 +709,7 @@ DWORD __wine_emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT86 *context )
idt[1].LimitLow = 0x100; /* FIXME */ idt[1].LimitLow = 0x100; /* FIXME */
idt[2].LimitLow = 0x11E; /* FIXME */ idt[2].LimitLow = 0x11E; /* FIXME */
idt[3].LimitLow = 0x500; /* FIXME */ idt[3].LimitLow = 0x500; /* FIXME */
store_reg( context, instr[1], (BYTE *)&idt + offset, long_op ); store_reg( context, instr[1], (BYTE *)idt + offset, long_op );
context->Eip += prefixlen + len + 1; context->Eip += prefixlen + len + 1;
return ExceptionContinueExecution; return ExceptionContinueExecution;
} }
......
...@@ -3255,7 +3255,7 @@ BOOL WINAPI IsValidLanguageGroup(LGRPID lgrpid, DWORD dwFlags) ...@@ -3255,7 +3255,7 @@ BOOL WINAPI IsValidLanguageGroup(LGRPID lgrpid, DWORD dwFlags)
sprintfW( szValueName, szFormat, lgrpid ); sprintfW( szValueName, szFormat, lgrpid );
if (NLS_RegGetDword( hKey, szValueName, (LPDWORD)&szValue )) if (NLS_RegGetDword( hKey, szValueName, (LPDWORD)szValue ))
{ {
bSupported = TRUE; bSupported = TRUE;
......
...@@ -277,7 +277,7 @@ static const CALLFROM16 *get_entry_point( STACK16FRAME *frame, LPSTR module, LPS ...@@ -277,7 +277,7 @@ static const CALLFROM16 *get_entry_point( STACK16FRAME *frame, LPSTR module, LPS
/* Retrieve entry point call structure */ /* Retrieve entry point call structure */
p = MapSL( MAKESEGPTR( frame->module_cs, frame->callfrom_ip ) ); p = MapSL( MAKESEGPTR( frame->module_cs, frame->callfrom_ip ) );
/* p now points to lret, get the start of CALLFROM16 structure */ /* p now points to lret, get the start of CALLFROM16 structure */
return (CALLFROM16 *)(p - (BYTE *)&((CALLFROM16 *)0)->ret); return (CALLFROM16 *)(p - FIELD_OFFSET( CALLFROM16, ret ));
} }
......
...@@ -196,7 +196,7 @@ static SEGPTR TASK_AllocThunk(void) ...@@ -196,7 +196,7 @@ static SEGPTR TASK_AllocThunk(void)
if (!(pTask = TASK_GetCurrent())) return 0; if (!(pTask = TASK_GetCurrent())) return 0;
sel = pTask->hCSAlias; sel = pTask->hCSAlias;
pThunk = (THUNKS *)&pTask->thunks; pThunk = (THUNKS *)pTask->thunks;
base = (char *)pThunk - (char *)pTask; base = (char *)pThunk - (char *)pTask;
while (!pThunk->free) while (!pThunk->free)
{ {
...@@ -231,7 +231,7 @@ static BOOL TASK_FreeThunk( SEGPTR thunk ) ...@@ -231,7 +231,7 @@ static BOOL TASK_FreeThunk( SEGPTR thunk )
if (!(pTask = TASK_GetCurrent())) return 0; if (!(pTask = TASK_GetCurrent())) return 0;
sel = pTask->hCSAlias; sel = pTask->hCSAlias;
pThunk = (THUNKS *)&pTask->thunks; pThunk = (THUNKS *)pTask->thunks;
base = (char *)pThunk - (char *)pTask; base = (char *)pThunk - (char *)pTask;
while (sel && (sel != HIWORD(thunk))) while (sel && (sel != HIWORD(thunk)))
{ {
...@@ -286,7 +286,7 @@ static TDB *TASK_Create( NE_MODULE *pModule, UINT16 cmdShow, LPCSTR cmdline, BYT ...@@ -286,7 +286,7 @@ static TDB *TASK_Create( NE_MODULE *pModule, UINT16 cmdShow, LPCSTR cmdline, BYT
/* Create the thunks block */ /* Create the thunks block */
TASK_CreateThunks( hTask, (char *)&pTask->thunks - (char *)pTask, 7 ); TASK_CreateThunks( hTask, (char *)pTask->thunks - (char *)pTask, 7 );
/* Copy the module name */ /* Copy the module name */
...@@ -315,7 +315,7 @@ static TDB *TASK_Create( NE_MODULE *pModule, UINT16 cmdShow, LPCSTR cmdline, BYT ...@@ -315,7 +315,7 @@ static TDB *TASK_Create( NE_MODULE *pModule, UINT16 cmdShow, LPCSTR cmdline, BYT
pTask->pdb.savedint23 = 0; pTask->pdb.savedint23 = 0;
pTask->pdb.savedint24 = 0; pTask->pdb.savedint24 = 0;
pTask->pdb.fileHandlesPtr = pTask->pdb.fileHandlesPtr =
MAKESEGPTR( GlobalHandleToSel16(pTask->hPDB), (int)&((PDB16 *)0)->fileHandles ); MAKESEGPTR( GlobalHandleToSel16(pTask->hPDB), FIELD_OFFSET( PDB16, fileHandles ));
pTask->pdb.hFileHandles = 0; pTask->pdb.hFileHandles = 0;
memset( pTask->pdb.fileHandles, 0xff, sizeof(pTask->pdb.fileHandles) ); memset( pTask->pdb.fileHandles, 0xff, sizeof(pTask->pdb.fileHandles) );
/* FIXME: should we make a copy of the environment? */ /* FIXME: should we make a copy of the environment? */
...@@ -348,7 +348,7 @@ static TDB *TASK_Create( NE_MODULE *pModule, UINT16 cmdShow, LPCSTR cmdline, BYT ...@@ -348,7 +348,7 @@ static TDB *TASK_Create( NE_MODULE *pModule, UINT16 cmdShow, LPCSTR cmdline, BYT
/* Default DTA overwrites command line */ /* Default DTA overwrites command line */
pTask->dta = MAKESEGPTR( pTask->hPDB, (int)&pTask->pdb.cmdLine - (int)&pTask->pdb ); pTask->dta = MAKESEGPTR( pTask->hPDB, FIELD_OFFSET( PDB16, cmdLine ));
/* Create scheduler event for 16-bit tasks */ /* Create scheduler event for 16-bit tasks */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment