mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 08:37:16 +00:00
Bug fix for native USER.
This commit is contained in:
parent
431cf32450
commit
bcb7f4ee37
|
@ -245,7 +245,6 @@ ATOM WINAPI AddAtom16( LPCSTR str )
|
||||||
int len, ae_len;
|
int len, ae_len;
|
||||||
WORD iatom;
|
WORD iatom;
|
||||||
|
|
||||||
if (CURRENT_DS == ATOM_UserDS) return GlobalAddAtomA( str );
|
|
||||||
if (ATOM_IsIntAtomA( str, &iatom )) return iatom;
|
if (ATOM_IsIntAtomA( str, &iatom )) return iatom;
|
||||||
|
|
||||||
TRACE("%s\n",debugstr_a(buffer));
|
TRACE("%s\n",debugstr_a(buffer));
|
||||||
|
@ -255,6 +254,8 @@ ATOM WINAPI AddAtom16( LPCSTR str )
|
||||||
|
|
||||||
len = strlen( buffer );
|
len = strlen( buffer );
|
||||||
if (!(table = ATOM_GetTable( TRUE ))) return 0;
|
if (!(table = ATOM_GetTable( TRUE ))) return 0;
|
||||||
|
if (CURRENT_DS == ATOM_UserDS) return GlobalAddAtomA( str );
|
||||||
|
|
||||||
hash = ATOM_Hash( table->size, buffer, len );
|
hash = ATOM_Hash( table->size, buffer, len );
|
||||||
entry = table->entries[hash];
|
entry = table->entries[hash];
|
||||||
while (entry)
|
while (entry)
|
||||||
|
|
Loading…
Reference in a new issue