Author: ekohl
Date: Fri Apr 22 15:18:31 2011
New Revision: 51429
URL:
http://svn.reactos.org/svn/reactos?rev=51429&view=rev
Log:
[SERVICES]
RChangeServiceConfig2W: Use the error code of a call to RegSetValueExW.
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/rpcse…
==============================================================================
--- trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] Fri Apr 22 15:18:31 2011
@@ -4508,13 +4508,12 @@
lpServiceDescription->lpDescription != NULL)
{
DPRINT("Setting value %S\n",
lpServiceDescription->lpDescription);
- RegSetValueExW(hServiceKey,
- L"Description",
- 0,
- REG_SZ,
- (LPBYTE)lpServiceDescription->lpDescription,
- (wcslen(lpServiceDescription->lpDescription) + 1) *
sizeof(WCHAR));
-
+ dwError = RegSetValueExW(hServiceKey,
+ L"Description",
+ 0,
+ REG_SZ,
+ (LPBYTE)lpServiceDescription->lpDescription,
+ (wcslen(lpServiceDescription->lpDescription) + 1)
* sizeof(WCHAR));
if (dwError != ERROR_SUCCESS)
goto done;
}