gvg(a)svn.reactos.com wrote:
Return atom length when requested. Fixes bug 793.
Modified: trunk/reactos/lib/rtl/atom.c
Modified: trunk/reactos/subsys/win32k/ntuser/class.c
------------------------------------------------------------------------
*Modified: trunk/reactos/lib/rtl/atom.c*
--- trunk/reactos/lib/rtl/atom.c 2005-09-22 20:17:55 UTC (rev 17984)
+++ trunk/reactos/lib/rtl/atom.c 2005-09-22 20:24:50 UTC (rev 17985)
@@ -610,6 +610,10 @@
*NameLength = Length;
}
}
+ else if (NameLength != NULL)
+ {
+ *NameLength = (Entry->NameLength + 1) * sizeof(WCHAR);
+ }
return Status;
}
@@ -651,6 +655,10 @@
*NameLength = Length;
}
}
+ else if (NameLength != NULL)
+ {
+ *NameLength = (Entry->NameLength + 1) * sizeof(WCHAR);
+ }
}
else
{
------------------------------------------------------------------------
Entry is uninitialized at this two points.
- Hartmut