[Bug 20336] GetDriveTypeW exposes partially uninitialized out parameter iosb in NtDeviceIoControlFile ?

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Oct 12 17:08:56 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=20336





--- Comment #1 from Dan Kegel <dank at kegel.com>  2009-10-12 17:08:56 ---
Aw, it's small, here it is:

--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -1236,6 +1236,8 @@ static NTSTATUS server_ioctl_file( HANDLE handle, HANDLE
event,
         wine_server_set_reply( req, out_buffer, out_size );
         if (!(status = wine_server_call( req )))
             io->Information = wine_server_reply_size( reply );
+        else
+            io->Information = 0;

I wonder if it shouldn't also copy Information in the STATUS_MORE_ENTRIES
case, which is explicitly not a failure.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list