shcore: Check optional pointer in filestream_CopyTo() before writing to it.
commitd28d7bd52cfb8f98835d4792901c12785b3bf0b3
authorDanyil Blyschak <dblyschak@codeweavers.com>
Tue, 21 May 2024 16:15:45 +0000 (21 11:15 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 21 May 2024 18:46:52 +0000 (21 20:46 +0200)
tree4b3e67000dcae55d9cee355578d1784014528b0d
parent3ee6f3b9183c3dab8f4a89331a345d88f561e0e0
shcore: Check optional pointer in filestream_CopyTo() before writing to it.

Check that the 'written' parameter in this function is non-null before
incrementing it by 'written_chunk'.
dlls/shcore/main.c