kernel32/tests: Fix actctx tests on Vista+ (try 2)

Ge van Geldorp ggeldorp at vmware.com
Mon Sep 14 10:45:23 CDT 2009


Paul Vriens told me the patch didn't apply correctly, there was an end of
line missing from the last line. Resending in the hope that it works
correctly this time.

Vista and higher seem to cache the presence/absence of external .manifest
files. When starting "kernel32_test.exe actctx" Windows appears to record
that no kernel32_test.exe.manifest file is present. As part of the test,
we create that manifest file and launch "kernel32_test.exe actctx
manifest1" to do some tests with an external .manifest file. However,
Windows simply doesn't seem to load the .manifest in the child process.

If I start from a clean snapshot, manually create the .manifest file and
then run the child test ("kernel32_test.exe actctx manifest1") the child
test runs fine. After removing the .manifest file and running the parent
test ("kernel32_test.exe actctx") the child will still load the .manifest
correctly.

Changing the last modified date of the executable appears to prevent the
cache from being used.

Changelog:
  kernel32/tests: Fix actctx tests on Vista+
---
 dlls/kernel32/tests/actctx.c |   30 ++++++++++++++++++++++-------- 1
files changed, 22 insertions(+), 8 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7fbb1ef6e138d80df8c14e0b2e4c1525fc22e8f6.diff
Type: text/x-patch
Size: 3672 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090914/d2c71ef3/attachment.bin>


More information about the wine-patches mailing list