ole32: Fix some races in the global interface table implementation.
commiteebf8df6015472de393c049c4daea6f7be06b905
authorRob Shearman <rob@codeweavers.com>
Tue, 22 May 2007 09:31:11 +0000 (22 10:31 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 23 May 2007 10:49:28 +0000 (23 12:49 +0200)
tree9eac79e1df24d5181b131c379e4fff5ca0fd9b3e
parent71a5b2d943d87786d72850196dacd3a84c6629fe
ole32: Fix some races in the global interface table implementation.

Fix a race between RevokeInterfaceFromGlobal and GetInterfaceFromGlobal
by only using the entry inside the critical section.

Fix a race between two GetInterfaceFromGlobal by cloning the stream,
instead of using it and setting the current position back to zero.
dlls/ole32/git.c