Author: dgorbachev
Date: Sun Jul 26 11:52:27 2009
New Revision: 42228
URL:
http://svn.reactos.org/svn/reactos?rev=42228&view=rev
Log:
Silence a warning.
Modified:
trunk/reactos/dll/win32/advapi32/sec/ac.c
Modified: trunk/reactos/dll/win32/advapi32/sec/ac.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/ac.…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/ac.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/ac.c [iso-8859-1] Sun Jul 26 11:52:27 2009
@@ -729,15 +729,7 @@
StrBuf,
BufferSize) == 0)
{
-ConvertErr:
- ErrorCode = GetLastError();
-
- /* cleanup */
- RtlFreeHeap(RtlGetProcessHeap(),
- 0,
- *pTrusteeW);
-
- return ErrorCode;
+ goto ConvertErr;
}
oan->ptstrName = StrBuf;
}
@@ -757,6 +749,16 @@
break;
}
}
+
+ return ErrorCode;
+
+ConvertErr:
+ ErrorCode = GetLastError();
+
+ /* cleanup */
+ RtlFreeHeap(RtlGetProcessHeap(),
+ 0,
+ *pTrusteeW);
return ErrorCode;
}
@@ -930,15 +932,7 @@
StrBuf,
BufferSize) == 0)
{
-ConvertErr:
- ErrorCode = GetLastError();
-
- /* cleanup */
- RtlFreeHeap(RtlGetProcessHeap(),
- 0,
- peaw);
-
- return ErrorCode;
+ goto ConvertErr;
}
oan->ptstrName = StrBuf;
@@ -973,6 +967,16 @@
}
return ErrorCode;
+
+ConvertErr:
+ ErrorCode = GetLastError();
+
+ /* cleanup */
+ RtlFreeHeap(RtlGetProcessHeap(),
+ 0,
+ peaw);
+
+ return ErrorCode;
}