Small fix for GetCurrentDirectoryA()

Andreas Mohr andi at rhlx01.fht-esslingen.de
Fri Jun 10 03:01:45 CDT 2005


Hi,

On Fri, Jun 10, 2005 at 07:26:33AM +0200, Felix Nawothnig wrote:
> This makes Yoda Stories (which is shipped with a broken wavmix32.dll) 
> run out of the box.
> 
> ChangeLog:
> When emulating Win9x return ERROR_INVALID_PARAMETER if a bad buffer is 
> passed to GetCurrentDirectoryA().
Does Win9x GetCurrentDirectoryA() really use an IsBadWritePtr to protect
against invalid output buffers?
Somehow I slightly doubt it...
(IsBadWritePtr isn't the fastest thing in the world...)

Aren't you covering up a previous bug with buffer allocation or so?

Andreas Mohr



More information about the wine-devel mailing list