PATCH: avifile init/exit handling

Andreas Mohr andi at rhlx01.fht-esslingen.de
Wed Jul 6 02:52:01 CDT 2005


Hi,

On Wed, Jul 06, 2005 at 08:14:14AM +0200, Marcus Meissner wrote:
> Hi,
> 
> This implements Roberts suggestion of uninitializing Ole if it is no
> longer needed.
> 
> Ciao, Marcus
> 
> Changelog:
> 	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.

Andreas Mohr



More information about the wine-devel mailing list