Changeset 1254 for trunk/src


Ignore:
Timestamp:
Oct 11, 1999, 10:55:49 PM (26 years ago)
Author:
sandervl
Message:

EB's GetTextFaceW fix

File:
1 edited

Legend:

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

    r1246 r1254  
    1 /* $Id: gdi32.cpp,v 1.9 1999-10-11 15:26:35 sandervl Exp $ */
     1/* $Id: gdi32.cpp,v 1.10 1999-10-11 20:55:49 sandervl Exp $ */
    22
    33/*
     
    14741474int WIN32API GetTextFaceW( HDC arg1, int arg2, LPWSTR  arg3)
    14751475{
    1476  char *astring = UnicodeToAsciiString((LPWSTR)arg3);
     1476 char *astring = (char *)malloc(arg2+1);
    14771477 int   rc;
    14781478
    14791479    dprintf(("GDI32: OS2GetTextFaceW"));
    1480     // NOTE: This will not work as is (needs UNICODE support)
    14811480    rc = O32_GetTextFace(arg1, arg2, astring);
    1482     FreeAsciiString(astring);
     1481    AsciiToUnicode(astring, arg3);     
    14831482    return rc;
    14841483}
Note: See TracChangeset for help on using the changeset viewer.