Hello all.
Some traces +mdi and version of strlenW that prints result
before exit:
...
trace:mdi:MDI_UpdateFrameText AFTER lstrcpyW(lpBuffer): L"Adobe PageMaker 6.5"
trace:mdi:MDI_UpdateFrameText BEFORE strcatW(L"Adobe PageMaker 6.5", L" - [")
strlenW(): 19 -- right
Dmitry wrote:
Some workarounds:
1. Without -O2 - all right.
2. Disabling assembly in strlenW - all right.
Ideas?
It would appear that a __volatile__ is missing in strlenW;
therefore, the CSE pass assumes strlenW(lpBuffer) has always
the same value (as long as the value of lpBuffer