Changeset 10363 for trunk/src


Ignore:
Timestamp:
Dec 29, 2003, 11:55:49 AM (22 years ago)
Author:
sandervl
Message:

DT: GetTextExtentPointW fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gdi32/text.cpp

    r10349 r10363  
    1 /* $Id: text.cpp,v 1.35 2003-12-01 13:27:39 sandervl Exp $ */
     1/* $Id: text.cpp,v 1.36 2003-12-29 10:55:49 sandervl Exp $ */
    22
    33/*
     
    409409   pDCData    pHps = (pDCData)OSLibGpiQueryDCData((HPS)hdc);
    410410
    411    dprintf(("GDI32: GetTextExtentPointW %ls", lpString));
     411   dprintf(("GDI32: GetTextExtentPointW %x %.*ls %d", hdc, cbString, lpString, cbString));
    412412   if(pHps == NULL)
    413413   {
     
    460460   lstrcpynWtoA(astring, lpString, len + 1 );
    461461
    462    BOOL ret = OSLibGpiQueryTextBox(pHps, cbString, astring, TXTBOXOS_COUNT, pts);
     462   rc = OSLibGpiQueryTextBox(pHps, cbString, astring, TXTBOXOS_COUNT, pts);
    463463   free(astring);
    464464
     
    480480   }
    481481
    482    dprintf(("GDI32: GetTextExtentPointW %x %ls %d returned %d (%d,%d)", hdc, lpString, cbString, rc, lpSize->cx, lpSize->cy));
     482   dprintf(("GDI32: GetTextExtentPointW %x %.*ls %d returned %d (%d,%d)", hdc, cbString, lpString, cbString, rc, lpSize->cx, lpSize->cy));
    483483   SetLastError(ERROR_SUCCESS);
    484484   return TRUE;
Note: See TracChangeset for help on using the changeset viewer.