Author: gschneider
Date: Sat Oct 24 13:51:33 2009
New Revision: 43709
URL:
http://svn.reactos.org/svn/reactos?rev=43709&view=rev
Log:
[kernel32] Check for valid atom, fixes the remaining eight kernel32 atom winetests
Modified:
trunk/reactos/dll/win32/kernel32/misc/atom.c
Modified: trunk/reactos/dll/win32/kernel32/misc/atom.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/at…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/atom.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/atom.c [iso-8859-1] Sat Oct 24 13:51:33 2009
@@ -302,6 +302,11 @@
SetLastErrorByStatus(STATUS_BUFFER_OVERFLOW);
return 0;
}
+ if (!Atom)
+ {
+ SetLastErrorByStatus(STATUS_INVALID_PARAMETER);
+ return 0;
+ }
/* Check if this is a global query */
if (Local)