Fixed a bug in SmConnectApiPort
Modified: trunk/reactos/lib/smdll/connect.c
_____
Modified: trunk/reactos/lib/smdll/connect.c
--- trunk/reactos/lib/smdll/connect.c 2005-03-08 11:41:56 UTC (rev
13873)
+++ trunk/reactos/lib/smdll/connect.c 2005-03-08 14:26:31 UTC (rev
13874)
@@ -49,12 +49,12 @@
DPRINT("SMDLL: %s called\n", __FUNCTION__);
- if (pSbApiPortName->Length > (sizeof pSbApiPortName->Buffer[0] *
SM_SB_NAME_MAX_LENGTH))
+ if (pSbApiPortName)
{
+ if (pSbApiPortName->Length > (sizeof pSbApiPortName->Buffer[0] *
SM_SB_NAME_MAX_LENGTH))
+ {
return STATUS_INVALID_PARAMETER_1;
- }
- if (pSbApiPortName)
- {
+ }
if (NULL == hSbApiPort || IMAGE_SUBSYSTEM_UNKNOWN == dwSubsystem)
{
return STATUS_INVALID_PARAMETER_MIX;
@@ -73,7 +73,7 @@
SecurityQos.EffectiveOnly = TRUE;
RtlInitUnicodeString (& SmApiPortName, SM_API_PORT_NAME);
-
+DbgPrint("SMDLL: calling NtConnectPort\n");
Status = NtConnectPort (
phSmApiPort,
& SmApiPortName,