Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
Operating System: ReactOS
Platform: x86 Hardware
Description
/*
- This test fails on ReactOS, because GlobalGetAtomNameA causes
- user mode exception.
*/
#include <windows.h>
#include <stdio.h>
int main()
{
ATOM Atom;
CHAR Buffer[10];
UINT Length;
printf("Calling GlobalAddAtomA\n");
Atom = GlobalAddAtomA("foobar");
printf("Calling GlobalGetAtomNameA\n");
Length = GlobalGetAtomNameA(Atom, Buffer, 10);
if (Length != 6)
printf("Bad length reported (%d)\n", Length);
else
if (strcmp(Buffer, "foobar"))
printf("Bad name reported\n");
printf("Test finished\n");
return 0;
}