delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/21/05:08:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Tue, 21 Jul 2009 11:08:08 +0200
Message-ID: <6910a60907210208l40f23d0bv628a74c00ec54a06@mail.gmail.com>
Subject: w32api bug: GetDCBrushColor
From: Reini Urban <rurban AT x-ray DOT at>
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

w32api latest:
GetDCBrushColor is incorrectly imported from libmsimg32.a (msimg32.dll)
but is defined in gdi32.dll

See http://msdn.microsoft.com/en-us/library/dd144872(VS.85).aspx

winxp sp2:

$ objdump -t /usr/lib/w32api/libmsimg32.a|grep GetDCBrushColor
[  7](sec  1)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x00000000 _GetDCBrushColor AT 4
[  8](sec  5)(fl 0x00)(ty   0)(scl   2) (nx 0) 0x00000000
__imp__GetDCBrushColor AT 4
$ grep GetDCBrushColor /cygdrive/c/windows/system32/gdi32.dll
Binary file /cygdrive/c/windows/system32/gdi32.dll matches
$ grep GetDCBrushColor /cygdrive/c/windows/system32/msimg32.dll

-- 
Reini Urban
http://phpwiki.org/           http://murbreak.at/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019