Zebediah Figura : ntdll: Avoid crashing while tracing parameters to NtCreateNamedPipeFile().
Alexandre Julliard
julliard at winehq.org
Mon Apr 8 15:11:59 CDT 2019
Module: wine
Branch: master
Commit: 7dc459f3d131fd6343d4137df9fa5be1eb79e8b4
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7dc459f3d131fd6343d4137df9fa5be1eb79e8b4
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Sat Apr 6 15:54:31 2019 -0500
ntdll: Avoid crashing while tracing parameters to NtCreateNamedPipeFile().
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/file.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index e8775a3..3dafdcf 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -3481,13 +3481,13 @@ NTSTATUS WINAPI NtCreateNamedPipeFile( PHANDLE handle, ULONG access,
data_size_t len;
struct object_attributes *objattr;
+ if (!attr) return STATUS_INVALID_PARAMETER;
+
TRACE("(%p %x %s %p %x %d %x %d %d %d %d %d %d %p)\n",
- handle, access, debugstr_w(attr->ObjectName->Buffer), iosb, sharing, dispo,
+ handle, access, debugstr_us(attr->ObjectName), iosb, sharing, dispo,
options, pipe_type, read_mode, completion_mode, max_inst, inbound_quota,
outbound_quota, timeout);
- if (!attr) return STATUS_INVALID_PARAMETER;
-
/* assume we only get relative timeout */
if (timeout->QuadPart > 0)
FIXME("Wrong time %s\n", wine_dbgstr_longlong(timeout->QuadPart));
More information about the wine-cvs
mailing list