A problem with comctl32

Marcus Meissner meissner at suse.de
Mon Nov 4 07:04:41 CST 2002


> >>-    const INT lx = himl->cx * pimldp->i + pimldp->xBitmap;
> >>-    const INT ly = pimldp->yBitmap;
> >>+    static INT lx;
> >>+    static INT ly;
> >>   
> >>
> >
> >Should this be really static? Can't this function be called reentrant?
> >
> > 
> >
> well, static is no worse than const ;)

It is. Your program is no longer threadsafe.

Ciao, Marcus



More information about the wine-devel mailing list