From: Rod Widdowson Date: Tue, 13 May 2014 01:50:48 +0000 (-0400) Subject: Windows: Fix uninitialized variables X-Git-Tag: upstream/1.8.0_pre1^2~711 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ccb092c37802d300b6ec12d45f10bed42d2a5a59;p=packages%2Fo%2Fopenafs.git 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 --- 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",