Start off atoms in life with a ReferenceCount of 1
authorGé van Geldorp <ge@gse.nl>
Tue, 28 Jun 2005 22:33:48 +0000 (22:33 +0000)
committerGé van Geldorp <ge@gse.nl>
Tue, 28 Jun 2005 22:33:48 +0000 (22:33 +0000)
svn path=/trunk/; revision=16315

reactos/lib/rtl/atom.c

index f073de9..4dd69c9 100644 (file)
@@ -352,7 +352,7 @@ RtlAddAtomToAtomTable(IN PRTL_ATOM_TABLE AtomTable,
              if (Entry != NULL)
                {
                   Entry->HashLink = NULL;
              if (Entry != NULL)
                {
                   Entry->HashLink = NULL;
-                  Entry->ReferenceCount = 0;
+                  Entry->ReferenceCount = 1;
                   Entry->Flags = 0x0;
 
                   Entry->NameLength = AtomNameLen;
                   Entry->Flags = 0x0;
 
                   Entry->NameLength = AtomNameLen;