Andrew Talbot : winedos: Assign to struct instead of using memcpy.

Alexandre Julliard julliard at winehq.org
Sat Mar 22 08:18:41 CDT 2008


Module: wine
Branch: master
Commit: 2d08f90d76a788f75e5552d65c4217c107872527
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2d08f90d76a788f75e5552d65c4217c107872527

Author: Andrew Talbot <andrew.talbot at 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)
             {




More information about the wine-cvs mailing list