From ccb092c37802d300b6ec12d45f10bed42d2a5a59 Mon Sep 17 00:00:00 2001 From: Rod Widdowson Date: Mon, 12 May 2014 21:50:48 -0400 Subject: [PATCH] Windows: Fix uninitialized variables VS2013 spotted two cases where we do not set up the Iosb.Status when we catch an exception from Cc. Fix them. Change-Id: I93b8a48863f22fd1dc2d7dba4d9de18454f35fe0 Reviewed-on: http://gerrit.openafs.org/11140 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsrdr/kernel/lib/AFSLockControl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSLockControl.cpp b/src/WINNT/afsrdr/kernel/lib/AFSLockControl.cpp index a844da409..46744762c 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSLockControl.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSLockControl.cpp @@ -1,6 +1,6 @@ /* * Copyright (c) 2008, 2009, 2010, 2011 Kernel Drivers, LLC. - * Copyright (c) 2009, 2010, 2011 Your File System, Inc. + * Copyright (c) 2009, 2010, 2011, 2014 Your File System, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -190,6 +190,8 @@ AFSLockControl( IN PDEVICE_OBJECT LibDeviceObject, ntStatus = GetExceptionCode(); + stIoStatus.Status = ntStatus; + AFSDbgTrace(( 0, 0, "EXCEPTION - AFSLockControl CcFlushCache failed FID %08lX-%08lX-%08lX-%08lX Status 0x%08lX\n", @@ -276,6 +278,8 @@ AFSLockControl( IN PDEVICE_OBJECT LibDeviceObject, ntStatus = GetExceptionCode(); + stIoStatus.Status = ntStatus; + AFSDbgTrace(( 0, 0, "EXCEPTION - AFSLockControl CcFlushCache failed FID %08lX-%08lX-%08lX-%08lX Status 0x%08lX\n", -- 2.39.5