gdi32/tests: Add a test to check for ERROR_NOACCESS when passing an invalid buffer to GetObject
wine-devel at kievinfo.com
Sun May 9 22:31:50 CDT 2010
On 05/09/2010 03:15 PM, Jerome Leclanche wrote:
> On Sun, May 9, 2010 at 11:55 PM, Jerome Leclanche <adys.wh at gmail.com> wrote:
>> Testcase for bug 18864.
> This patch reveals a crash in GetObject in wine which I'm unsure how
> to fix. Someone proposed using IsBadWritePtr(), but from what I
> understand, this is not a recommended solution. Any idea?
If it doesn't crash on windows and you have a program that depends on broken
behavior - wrap the entire function with exception handler block. For
example see lstrcatA & co.
More information about the wine-devel