[PATCH 1/3] urlmon/tests: Fix clipformat test.

Misha Koshelev mk144210 at bcm.edu
Wed Aug 8 20:24:13 CDT 2007


This patchset: Jacek gave me his ok so I am finally unrolling http from the BindToStorage hack (as we
now support synchronous binding which is what the hack was doing before + asynchronous binding and POST
protocol which fixes the Vector NTI bug that I have been working to fix). yay.

This patch:
The clipformat test currently in git is wrong (it never gets run as it's in an if(0) group pending our
unrolling the hack which is done in the next patch btw), specifically the clipformat numerical value changes
from reboot to reboot and on different Windows versions. This is the proper test and it passes on Win98 and
WinXP.

The multibytetowidechar and getting the A version for GetClipboardFormatName may catch your attention.
Initially I just used an lstrcpyW and the W version, but there were some probs on Win98, so I switched
to the A version and multibytetowidechar (we still have to copy the string either way so I don't think
this adds any overhead and has the advantage of being able to easily display both strings in the ok
statement for debugging purposes).
---
 dlls/urlmon/tests/url.c |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8e81f51895fb5cd4340ef0eee11d941d8990a47d.diff
Type: text/x-patch
Size: 2648 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070808/0803e511/8e81f51895fb5cd4340ef0eee11d941d8990a47d.bin


More information about the wine-patches mailing list