Andrew Talbot : winedos: Assign to struct instead of using memcpy.
Module: wine Branch: master Commit: 2d08f90d76a788f75e5552d65c4217c107872527 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2d08f90d76a788f75e5552d65c... Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Fri Mar 21 15:29:51 2008 +0000 winedos: Assign to struct instead of using memcpy. --- dlls/winedos/int21.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/winedos/int21.c b/dlls/winedos/int21.c index ac99714..3b60719 100644 --- a/dlls/winedos/int21.c +++ b/dlls/winedos/int21.c @@ -2959,7 +2959,7 @@ static BOOL INT21_Fat32( CONTEXT86 *context ) source = &INT21_GetHeapPointer()->misc_dpb_list[drive]; *ptr = sizeof(INT21_DPB); - memcpy( target, source, sizeof(INT21_DPB)); + *target = *source; if (LOWORD(context->Esi) != 0xF1A6) {
participants (1)
-
Alexandre Julliard