[PATCH v3 1/2] kernel32/tests: Fix stack overflow by DefineDosDeviceW().

Jactry Zeng jzeng at codeweavers.com
Tue Sep 21 20:59:21 CDT 2021


Hi,

On 9/9/21 4:45 PM, Xu Wei wrote:
> +    DefineDosDeviceW( DDD_EXACT_MATCH_ON_REMOVE|DDD_RAW_TARGET_PATH|DDD_REMOVE_DEFINITION,
> +            "{00000001-0000-0000-0000-4E6574446576}",
> +            "\\Device\\{00000001-0000-0000-0000-4E6574446576}" );

You are passing char* into an unicode function.

Also in order to avoid the test crash on Linux testbot, you might want to reverse the order of your tests and your fix.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20210922/54f8998d/attachment.sig>


More information about the wine-devel mailing list