[kernel32] Check for valid atom, fixes the remaining eight kernel32 atom winetests

svn path=/trunk/; revision=43709
This commit is contained in:
Gregor Schneider 2009-10-24 11:51:33 +00:00
parent 0b487b45aa
commit 5cb190acc6

View file

@ -302,6 +302,11 @@ InternalGetAtomName(BOOLEAN Local,
SetLastErrorByStatus(STATUS_BUFFER_OVERFLOW);
return 0;
}
if (!Atom)
{
SetLastErrorByStatus(STATUS_INVALID_PARAMETER);
return 0;
}
/* Check if this is a global query */
if (Local)