[ros-dev] Re: [ros-diffs] [gvg] 17985: Return atom length when requested. Fixes bug 793.

Hartmut Birr osexpert at gmail.com
Fri Sep 23 18:09:18 CEST 2005


gvg at 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



More information about the Ros-dev mailing list