GetLastError strangeness with FindClose
dmitry at baikal.ru
Sat Aug 16 22:23:27 CDT 2003
"Eric Pouech" <pouech-eric at wanadoo.fr> wrote:
> > So, it looks like somewhere in FindClose Wine is resetting the last
> > error. I started digging through there and the functions it calls but I
> > was unable to find where it was getting reset. Can anyone shed some
> > light on this? Is there any way to break on that value changing?
> GlobalUnlock does set last error to 0 if it's unlocking the last lock.
A way to go might be to use HeapAlloc instead of GlobalAlloc and add
a critical section to the allocated data structure to protect the object.
Alex, are you willing to do the job?
More information about the wine-devel