Re: user32: Avoid crashing if we can't alloc text buffer

2011-12-03 Thread Bruno Jesus
On Sat, Dec 3, 2011 at 05:55, Nikolay Sivov wrote: > On 12/3/2011 04:35, Bruno Jesus wrote: > >> If LocalLock fails the buffer is not allocated and get_text_length, which >> is used in several different places, will make wine crash. > > LocalLock doesn't allocate anything. You need to figure out w

Re: user32: Avoid crashing if we can't alloc text buffer

2011-12-02 Thread Nikolay Sivov
On 12/3/2011 04:35, Bruno Jesus wrote: If LocalLock fails the buffer is not allocated and get_text_length, which is used in several different places, will make wine crash. LocalLock doesn't allocate anything. You need to figure out why buffer is not allocated at this point.