PATCH: avifile init/exit handling
andi at rhlx01.fht-esslingen.de
Wed Jul 6 02:52:01 CDT 2005
On Wed, Jul 06, 2005 at 08:14:14AM +0200, Marcus Meissner wrote:
> This implements Roberts suggestion of uninitializing Ole if it is no
> longer needed.
> Ciao, Marcus
> Call OleUninitialize() on last AVIFileExit()
> +static int ole_initialized = 0;
> + if (!ole_initialized++)
> + OleInitialize(NULL);
Isn't that somewhat racey?
Probably better to use InterlockedIncrement() here.
More information about the wine-devel