mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 01:42:30 +00:00
[NTOS/CM]
- Put the loop inside SEH, and not vice-versa. svn path=/trunk/; revision=64416
This commit is contained in:
parent
9f01c677b1
commit
fff76a1d0e
|
@ -1556,12 +1556,13 @@ CmpQueryNameInformation(
|
|||
/* Do the real copy */
|
||||
KeyNameInfo->NameLength = 0;
|
||||
CurrentKcb = Kcb;
|
||||
while (CurrentKcb)
|
||||
{
|
||||
ULONG NameLength;
|
||||
|
||||
_SEH2_TRY
|
||||
_SEH2_TRY
|
||||
{
|
||||
while (CurrentKcb)
|
||||
{
|
||||
ULONG NameLength;
|
||||
|
||||
if (CurrentKcb->NameBlock->Compressed)
|
||||
{
|
||||
NameLength = CmpCompressedNameSize(CurrentKcb->NameBlock->Name, CurrentKcb->NameBlock->NameLength);
|
||||
|
@ -1585,15 +1586,15 @@ CmpQueryNameInformation(
|
|||
/* Add path separator */
|
||||
KeyNameInfo->Name[NeededLength/sizeof(WCHAR)] = OBJ_NAME_PATH_SEPARATOR;
|
||||
KeyNameInfo->NameLength += NameLength + sizeof(OBJ_NAME_PATH_SEPARATOR);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
return _SEH2_GetExceptionCode();
|
||||
}
|
||||
_SEH2_END;
|
||||
|
||||
CurrentKcb = CurrentKcb->ParentKcb;
|
||||
CurrentKcb = CurrentKcb->ParentKcb;
|
||||
}
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
return _SEH2_GetExceptionCode();
|
||||
}
|
||||
_SEH2_END;
|
||||
|
||||
/* Make sure we copied everything */
|
||||
ASSERT(NeededLength == 0);
|
||||
|
|
Loading…
Reference in a new issue