CreateDCA -> CreateDCW

Jon Griffiths jon_p_griffiths at yahoo.com
Sun Sep 12 10:45:22 CDT 2004


Cheers,
Jon

  +dlls/comctl32/treeview.c dlls/gdi/enhmetafile.c dlls/gdi/wing.c
   windows/dce.c
   CreateDCA -> CreateDCW


=====
"Don't wait for the seas to part, or messiahs to come;
 Don't you sit around and waste this chance..." - Live

jon_p_griffiths at yahoo.com


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
-------------- next part --------------
diff -ur wine/dlls/comctl32/treeview.c wine-develop/dlls/comctl32/treeview.c
--- wine/dlls/comctl32/treeview.c	2004-08-27 23:11:26.000000000 +0000
+++ wine-develop/dlls/comctl32/treeview.c	2004-09-11 10:44:22.000000000 +0000
@@ -4634,6 +4634,7 @@
 static LRESULT
 TREEVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
 {
+    static const WCHAR szDisplayW[] = { 'D','I','S','P','L','A','Y','\0' };
     RECT rcClient;
     TREEVIEW_INFO *infoPtr;

@@ -4737,7 +4738,7 @@
 	infoPtr->himlState =
 	    ImageList_Create(16, 16, ILC_COLOR | ILC_MASK, 3, 0);

-	hdcScreen = CreateDCA("DISPLAY", NULL, NULL, NULL);
+	hdcScreen = CreateDCW(szDisplayW, NULL, NULL, NULL);

 	/* Create a coloured bitmap compatible with the screen depth
 	   because checkboxes are not black&white */
diff -ur wine/dlls/gdi/enhmetafile.c wine-develop/dlls/gdi/enhmetafile.c
--- wine/dlls/gdi/enhmetafile.c	2004-09-08 19:32:22.000000000 +0000
+++ wine-develop/dlls/gdi/enhmetafile.c	2004-09-11 10:44:22.000000000 +0000
@@ -2437,6 +2437,7 @@
 					   CONST METAFILEPICT *lpmfp
 					   )
 {
+    static const WCHAR szDisplayW[] = { 'D','I','S','P','L','A','Y','\0' };
     HMETAFILE hmf = 0;
     HENHMETAFILE ret = 0;
     HDC hdc = 0, hdcdisp = 0;
@@ -2456,7 +2457,7 @@
     }

     if(!hdcRef)
-        hdcRef = hdcdisp = CreateDCA("DISPLAY", NULL, NULL, NULL);
+        hdcRef = hdcdisp = CreateDCW(szDisplayW, NULL, NULL, NULL);

     if(!lpmfp) {
         lpmfp = &mfp;
diff -ur wine/dlls/gdi/wing.c wine-develop/dlls/gdi/wing.c
--- wine/dlls/gdi/wing.c	2004-06-23 08:32:43.000000000 +0000
+++ wine-develop/dlls/gdi/wing.c	2004-09-11 10:44:22.000000000 +0000
@@ -92,12 +92,13 @@
  */
 BOOL16 WINAPI WinGRecommendDIBFormat16(BITMAPINFO *bmpi)
 {
+    static const WCHAR szDisplayW[] = { 'D','I','S','P','L','A','Y','\0' };
     HDC hdc;
     TRACE("(%p)\n", bmpi);
     if (!bmpi)
 	return FALSE;

-    hdc = CreateDCA( "DISPLAY", NULL, NULL, NULL );
+    hdc = CreateDCW( szDisplayW, NULL, NULL, NULL );
     bmpi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
     bmpi->bmiHeader.biWidth = 320;
     bmpi->bmiHeader.biHeight = -1;
diff -ur wine/windows/dce.c wine-develop/windows/dce.c
--- wine/windows/dce.c	2004-08-13 13:41:16.000000000 +0000
+++ wine-develop/windows/dce.c	2004-09-11 10:44:22.000000000 +0000
@@ -81,10 +81,13 @@
  */
 DCE *DCE_AllocDCE( HWND hWnd, DCE_TYPE type )
 {
+    static const WCHAR szDisplayW[] = { 'D','I','S','P','L','A','Y','\0' };
     DCE * dce;

+    TRACE("(%p,%d)\n", hWnd, type);
+
     if (!(dce = HeapAlloc( GetProcessHeap(), 0, sizeof(DCE) ))) return NULL;
-    if (!(dce->hDC = CreateDCA( "DISPLAY", NULL, NULL, NULL )))
+    if (!(dce->hDC = CreateDCW( szDisplayW, NULL, NULL, NULL )))
     {
         HeapFree( GetProcessHeap(), 0, dce );
 	return 0;


More information about the wine-patches mailing list