Author: tkreuzer
Date: Wed Jan 8 00:01:11 2014
New Revision: 61573
URL:
http://svn.reactos.org/svn/reactos?rev=61573&view=rev
Log:
[SMLIB]
Fix "annotation" and use a better variable name.
Modified:
trunk/reactos/include/reactos/subsys/sm/smmsg.h
trunk/reactos/lib/smlib/smclient.c
Modified: trunk/reactos/include/reactos/subsys/sm/smmsg.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/subsys/sm/…
==============================================================================
--- trunk/reactos/include/reactos/subsys/sm/smmsg.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/subsys/sm/smmsg.h [iso-8859-1] Wed Jan 8 00:01:11 2014
@@ -244,7 +244,7 @@
IN PUNICODE_STRING SbApiPortName,
IN HANDLE SbApiPort,
IN ULONG ImageType,
- IN HANDLE SmApiPort
+ OUT PHANDLE SmApiPort
);
NTSTATUS
Modified: trunk/reactos/lib/smlib/smclient.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/smlib/smclient.c?rev=6…
==============================================================================
--- trunk/reactos/lib/smlib/smclient.c [iso-8859-1] (original)
+++ trunk/reactos/lib/smlib/smclient.c [iso-8859-1] Wed Jan 8 00:01:11 2014
@@ -67,11 +67,11 @@
SmConnectToSm(IN PUNICODE_STRING SbApiPortName,
IN HANDLE SbApiPort,
IN ULONG ImageType,
- IN HANDLE SmApiPort)
+ OUT PHANDLE SmApiPort)
{
NTSTATUS Status;
SB_CONNECTION_INFO ConnectInfo;
- UNICODE_STRING DestinationString;
+ UNICODE_STRING PortName;
SECURITY_QUALITY_OF_SERVICE SecurityQos;
ULONG ConnectInfoLength = sizeof(ConnectInfo);
@@ -81,7 +81,7 @@
SecurityQos.EffectiveOnly = TRUE;
/* Set the SM API port name */
- RtlInitUnicodeString(&DestinationString, L"\\SmApiPort");
+ RtlInitUnicodeString(&PortName, L"\\SmApiPort");
/* Check if this is a client connecting to SMSS, or SMSS to itself */
if (SbApiPortName)
@@ -108,7 +108,7 @@
/* Connect to SMSS and exchange connection information */
Status = NtConnectPort(SmApiPort,
- &DestinationString,
+ &PortName,
&SecurityQos,
NULL,
NULL,