Charles Davis : ntdll: Zero reserved fields of the request structure in DVD_ReadDescriptor().

Alexandre Julliard julliard at winehq.org
Tue Feb 14 13:23:33 CST 2012


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

Author: Charles Davis <cdavis at mymail.mines.edu>
Date:   Mon Feb 13 17:06:36 2012 -0700

ntdll: Zero reserved fields of the request structure in DVD_ReadDescriptor().

---

 dlls/ntdll/cdrom.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/cdrom.c b/dlls/ntdll/cdrom.c
index 1cd511c..1d1aa63 100644
--- a/dlls/ntdll/cdrom.c
+++ b/dlls/ntdll/cdrom.c
@@ -2640,6 +2640,7 @@ static NTSTATUS DVD_ReadStructure(int dev, const DVD_READ_STRUCTURE *structure,
     } nt_desc;
 
     nt_desc.layer = layer;
+    RtlZeroMemory(&dvdrs, sizeof(dvdrs));
     dvdrs.address = (uint32_t)(structure->BlockByteOffset.QuadPart>>11);
     dvdrs.grantID = (uint8_t)structure->SessionId;
     dvdrs.layer = structure->LayerNumber;




More information about the wine-cvs mailing list