mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:45:40 +00:00
Fixed a bug in SmConnectApiPort
svn path=/trunk/; revision=13874
This commit is contained in:
parent
0537266be6
commit
e2a3109a00
1 changed files with 5 additions and 5 deletions
|
@ -49,12 +49,12 @@ SmConnectApiPort (IN PUNICODE_STRING pSbApiPortName OPTIONAL,
|
||||||
|
|
||||||
DPRINT("SMDLL: %s called\n", __FUNCTION__);
|
DPRINT("SMDLL: %s called\n", __FUNCTION__);
|
||||||
|
|
||||||
|
if (pSbApiPortName)
|
||||||
|
{
|
||||||
if (pSbApiPortName->Length > (sizeof pSbApiPortName->Buffer[0] * SM_SB_NAME_MAX_LENGTH))
|
if (pSbApiPortName->Length > (sizeof pSbApiPortName->Buffer[0] * SM_SB_NAME_MAX_LENGTH))
|
||||||
{
|
{
|
||||||
return STATUS_INVALID_PARAMETER_1;
|
return STATUS_INVALID_PARAMETER_1;
|
||||||
}
|
}
|
||||||
if (pSbApiPortName)
|
|
||||||
{
|
|
||||||
if (NULL == hSbApiPort || IMAGE_SUBSYSTEM_UNKNOWN == dwSubsystem)
|
if (NULL == hSbApiPort || IMAGE_SUBSYSTEM_UNKNOWN == dwSubsystem)
|
||||||
{
|
{
|
||||||
return STATUS_INVALID_PARAMETER_MIX;
|
return STATUS_INVALID_PARAMETER_MIX;
|
||||||
|
@ -73,7 +73,7 @@ SmConnectApiPort (IN PUNICODE_STRING pSbApiPortName OPTIONAL,
|
||||||
SecurityQos.EffectiveOnly = TRUE;
|
SecurityQos.EffectiveOnly = TRUE;
|
||||||
|
|
||||||
RtlInitUnicodeString (& SmApiPortName, SM_API_PORT_NAME);
|
RtlInitUnicodeString (& SmApiPortName, SM_API_PORT_NAME);
|
||||||
|
DbgPrint("SMDLL: calling NtConnectPort\n");
|
||||||
Status = NtConnectPort (
|
Status = NtConnectPort (
|
||||||
phSmApiPort,
|
phSmApiPort,
|
||||||
& SmApiPortName,
|
& SmApiPortName,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue