[Wine-patches] [eterhack] Revert "gdi32: Disable justification at all". (eterbug #8751)

Dmitry Timoshkov dtimoshkov на etersoft.ru
Чт Окт 18 10:22:16 MSK 2012


This reverts commit c37037d854eb19c499fb5b034e5faf3664c1d626.
---
 dlls/gdi32/font.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c
index 4c6b940..2cab349 100644
--- a/dlls/gdi32/font.c
+++ b/dlls/gdi32/font.c
@@ -894,9 +894,9 @@ BOOL WINAPI SetTextJustification( HDC hdc, INT extra, INT breaks )
 {
     BOOL ret;
     PHYSDEV physdev;
-    DC * dc;
-    return TRUE;
-    dc = get_dc_ptr( hdc );
+    DC * dc = get_dc_ptr( hdc );
+
+    if (!dc) return FALSE;
 
     physdev = GET_DC_PHYSDEV( dc, pSetTextJustification );
     ret = physdev->funcs->pSetTextJustification( physdev, extra, breaks );
-- 
1.7.12.3



Подробная информация о списке рассылки Wine-patches