Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
932a2a0d
Commit
932a2a0d
authored
Jul 13, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix swapped 2nd and 3rd argument passed to memset.
parent
4cf14960
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
device.c
dlls/dinput/device.c
+1
-1
brush.c
dlls/gdi/tests/brush.c
+1
-1
int10.c
dlls/winedos/int10.c
+4
-4
xim.c
dlls/winex11.drv/xim.c
+2
-2
No files found.
dlls/dinput/device.c
View file @
932a2a0d
...
@@ -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
;
}
}
}
}
...
...
dlls/gdi/tests/brush.c
View file @
932a2a0d
...
@@ -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
);
...
...
dlls/winedos/int10.c
View file @
932a2a0d
...
@@ -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
,
19
0
);
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
);
}
}
...
...
dlls/winex11.drv/xim.c
View file @
932a2a0d
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment