It's nice to see you again between us.
Welcome back. :)


> Date: Tue, 22 Dec 2009 16:51:33 +0000
> To: ros-diffs@reactos.org
> From: ekohl@svn.reactos.org
> Subject: [ros-diffs] [ekohl] 44713: - Remove unused variable - Get rid of those ugly single line if-statements. - No code changes
>
> Author: ekohl
> Date: Tue Dec 22 17:51:33 2009
> New Revision: 44713
>
> URL: http://svn.reactos.org/svn/reactos?rev=44713&view=rev
> Log:
> - Remove unused variable
> - Get rid of those ugly single line if-statements.
> - No code changes
>
> Modified:
> trunk/reactos/base/system/services/rpcserver.c
>
> Modified: trunk/reactos/base/system/services/rpcserver.c
> URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/rpcserver.c?rev=44713&r1=44712&r2=44713&view=diff
> ==============================================================================
> --- trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] (original)
> +++ trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] Tue Dec 22 17:51:33 2009
> @@ -2228,7 +2228,8 @@
> return ERROR_ACCESS_DENIED;
> }
>
> - if (lpResumeHandle) dwLastResumeCount = *lpResumeHandle;
> + if (lpResumeHandle)
> + dwLastResumeCount = *lpResumeHandle;
>
> /* FIXME: Lock the service list shared */
>
> @@ -2306,7 +2307,9 @@
>
> DPRINT("*pcbBytesNeeded: %lu\n", dwRequiredSize);
>
> - if (lpResumeHandle) *lpResumeHandle = dwLastResumeCount;
> + if (lpResumeHandle)
> + *lpResumeHandle = dwLastResumeCount;
> +
> *lpServicesReturned = dwServiceCount;
> *pcbBytesNeeded = dwRequiredSize;
>
> @@ -3244,7 +3247,8 @@
> KEY_READ,
> &hServicesKey);
>
> - if (dwError != ERROR_SUCCESS) return dwError;
> + if (dwError != ERROR_SUCCESS)
> + return dwError;
>
> /* NOTE: Windows calculates the pcbBytesNeeded based on WCHAR strings for
> both EnumDependentServicesA and EnumDependentServicesW. So returned pcbBytesNeeded
> @@ -3376,8 +3380,7 @@
> }
> }
>
> - dwError = REnumServicesStatusW(//BindingHandle,
> - hSCManager,
> + dwError = REnumServicesStatusW(hSCManager,
> dwServiceType,
> dwServiceState,
> (LPBYTE)lpStatusPtrW,
> @@ -3387,7 +3390,8 @@
> lpResumeHandle);
>
> /* if no services were returned then we are Done */
> - if (*lpServicesReturned == 0) goto Done;
> + if (*lpServicesReturned == 0)
> + goto Done;
>
> lpStatusPtrA = (LPENUM_SERVICE_STATUSA)lpBuffer;
> lpStringPtrA = (LPSTR)((ULONG_PTR)lpBuffer +
> @@ -3434,7 +3438,8 @@
> }
>
> Done:;
> - if (lpStatusPtrW) HeapFree(GetProcessHeap(), 0, lpStatusPtrW);
> + if (lpStatusPtrW)
> + HeapFree(GetProcessHeap(), 0, lpStatusPtrW);
>
> DPRINT("REnumServicesStatusA() done (Error %lu)\n", dwError);
>
>
>


Chiacchiera, gioca, condividi: scarica gratis Messenger 2009