GetLastError strangeness with FindClose
ajp at mail.utexas.edu
Sun Aug 17 13:48:58 CDT 2003
Dmitry Timoshkov wrote:
> "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?
I'll try that and see how it turns out.
More information about the wine-devel