Peter Dons Tychsen : user32: Add exception handling for timer callbacks.
Peter Dons Tychsen
donpedro at tdcadsl.dk
Thu Oct 1 09:38:01 CDT 2009
On Thu, 2009-10-01 at 12:33 +0200, Alexandre Julliard wrote:
> Peter Dons Tychsen <donpedro at tdcadsl.dk> writes:
> > Just out of interest: You changed this to a write. Fine.
> > But why the volatile? Can GCC assume predetermined results when writing
> > to NULL? I don't see any reason to use volatile unless someone else is
> > also read/writing from NULL (which is impossible). It might just
> > generate more code in some cases.
> It's just to make sure no compiler tries to be too smart. For a single
> access it probably doesn't make a difference; it could change if for
> instance we try to trigger a second crash and the compiler optimizes out
> the first write.
Ah,OK. Thanks for the info.
More information about the wine-devel