Commit 932a2a0d authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

Fix swapped 2nd and 3rd argument passed to memset.

parent 4cf14960
...@@ -271,7 +271,7 @@ void fill_DataFormat(void *out, const void *in, DataFormat *df) { ...@@ -271,7 +271,7 @@ void fill_DataFormat(void *out, const void *in, DataFormat *df) {
break; break;
default: default:
memset((out_c + df->dt[i].offset_out), df->dt[i].size, 0); memset((out_c + df->dt[i].offset_out), 0, df->dt[i].size);
break; break;
} }
} }
......
...@@ -56,7 +56,7 @@ static void test_solidbrush(void) ...@@ -56,7 +56,7 @@ static void test_solidbrush(void)
} }
else else
stockBrush = NULL; stockBrush = NULL;
memset(&br, sizeof(br), 0); memset(&br, 0, sizeof(br));
ret = GetObject(solidBrush, sizeof(br), &br); ret = GetObject(solidBrush, sizeof(br), &br);
ok( ret !=0, "GetObject on solid %s brush failed, error=%ld\n", stock[i].name, GetLastError()); ok( ret !=0, "GetObject on solid %s brush failed, error=%ld\n", stock[i].name, GetLastError());
ok(br.lbStyle==BS_SOLID, "%s brush has wrong style, got %d expected %d\n", stock[i].name, br.lbStyle, BS_SOLID); ok(br.lbStyle==BS_SOLID, "%s brush has wrong style, got %d expected %d\n", stock[i].name, br.lbStyle, BS_SOLID);
......
...@@ -299,7 +299,7 @@ static void INT10_FillControllerInformation( BYTE *buffer ) ...@@ -299,7 +299,7 @@ static void INT10_FillControllerInformation( BYTE *buffer )
*(SEGPTR*)(buffer + 36) = 0; *(SEGPTR*)(buffer + 36) = 0;
/* 40 - BYTE[216]: reserved for VBE implementation, set to zero */ /* 40 - BYTE[216]: reserved for VBE implementation, set to zero */
memset( buffer + 40, 216, 0 ); memset( buffer + 40, 0, 216 );
/* /*
* 256 - BYTE[256]: reserved for VBE3.0 implementation, * 256 - BYTE[256]: reserved for VBE3.0 implementation,
...@@ -548,7 +548,7 @@ static BOOL INT10_FillModeInformation( struct _ModeInfoBlock *mib, WORD mode ) ...@@ -548,7 +548,7 @@ static BOOL INT10_FillModeInformation( struct _ModeInfoBlock *mib, WORD mode )
mib->MaxPixelClock = 0; /* FIXME */ mib->MaxPixelClock = 0; /* FIXME */
/* 66 - BYTE[190]: reserved, set to zero */ /* 66 - BYTE[190]: reserved, set to zero */
memset( &mib->Reserved4, 190, 0 ); memset( &mib->Reserved4, 0, 190 );
return TRUE; return TRUE;
} }
...@@ -636,7 +636,7 @@ static void INT10_FillStateInformation( BYTE *buffer, BIOSDATA *data ) ...@@ -636,7 +636,7 @@ static void INT10_FillStateInformation( BYTE *buffer, BIOSDATA *data )
buffer[46] = 0; /* FIXME: correct value? */ buffer[46] = 0; /* FIXME: correct value? */
/* 47 - BYTE[2]: reserved, set to zero */ /* 47 - BYTE[2]: reserved, set to zero */
memset( buffer + 47, 2, 0 ); memset( buffer + 47, 0, 2 );
/* /*
* 49 - BYTE: video memory available * 49 - BYTE: video memory available
...@@ -673,7 +673,7 @@ static void INT10_FillStateInformation( BYTE *buffer, BIOSDATA *data ) ...@@ -673,7 +673,7 @@ static void INT10_FillStateInformation( BYTE *buffer, BIOSDATA *data )
buffer[51] = 4; /* FIXME: correct value? */ buffer[51] = 4; /* FIXME: correct value? */
/* 52 - BYTE[12]: reserved, set to zero */ /* 52 - BYTE[12]: reserved, set to zero */
memset( buffer + 52, 12, 0 ); memset( buffer + 52, 0, 12 );
} }
......
...@@ -163,8 +163,8 @@ static BOOL X11DRV_ImmSetInternalString(DWORD dwIndex, DWORD dwOffset, ...@@ -163,8 +163,8 @@ static BOOL X11DRV_ImmSetInternalString(DWORD dwIndex, DWORD dwOffset,
HeapAlloc(GetProcessHeap(), 0, dwCompStringSize + HeapAlloc(GetProcessHeap(), 0, dwCompStringSize +
byte_expansion); byte_expansion);
memset(&(CompositionString[dwCompStringSize]), byte_expansion, memset(&(CompositionString[dwCompStringSize]), 0,
0); byte_expansion);
dwCompStringSize += byte_expansion; dwCompStringSize += byte_expansion;
} }
......
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