_SHFILEOPSTRUCTW is wrongly packed (has wrong structure)
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
_SHFILEOPSTRUCTW has wrong structure. As a result fAnyOperationsAborted and hNameMappings cannot be read after a SHFileOperationW call.
Steps to reproduce:
See the attached project. Run it. See the (1) and (2) marked lines in the source:
(1) Assertion fails: fAnyOperationsAborted receives an arbitrary number.
(2) hNameMappings receives an invalid pointer.
If I declare _SHFILEOPSTRUCTW as a packed record (uncomment the section) the bug disappears.
Additional information:
_SHFILEOPSTRUCTA is affected as well.