DISPLAY vs. \\.\DISPLAY1

Robert Shearman rob at codeweavers.com
Fri Nov 4 15:35:51 CST 2005


Tim Martin wrote:

>I had discovered a bug with Quicken 2005 where certain
>graphics aren't being drawn on screen, depending on
>whether the application is using W98 or W2k
>"emulation".
>
>The behavior actually changed (from works in W98 but
>broken in W2k to works in W2k but broken in W98) at
>some point in time.  After some tedius recompiling and
>testing (hey, I'm new to wine!) I discovered the
>behavior swap was due to a CVS commit to
>dlls\user\misc.c on 29 September 2005.
>
>Something to do with the display name being unicode
>DISPLAY vs. \\.\DISPLAY1 (which seems to be the first
>display name for Windows).
>
>I just sent a proposed patch to fix this bug, but
>thought I would also ask on this list to make sure I
>haven't done anything stupid (which I probably have). 
>Basically, there were several files that declare
>static constants for a display name - I globally
>search & replaced all DISPLAY with \\.\DISPLAY1 where
>it seemed to make sense, but hopefully others will
>have an opinion here.
>

I think the attached patch should also fix the problem you are seeing.

I think we need a more tests and a better architecutre architecture 
before we should start using \\.\DISPLAY1. I have a hunch, but haven't 
tested it, that DISPLAY should still work even on NT.

-- 
Rob Shearman

-------------- next part --------------
A non-text attachment was scrubbed...
Name: display1.diff
Type: text/x-patch
Size: 725 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20051104/91dd7990/display1.diff


More information about the wine-devel mailing list