Changeset 363


Ignore:
Timestamp:
Apr 8, 2010, 9:33:50 AM (12 years ago)
Author:
dmik
Message:

branches/kmk: Fixed stack overflow: Don't ask more items in DevQueryCaps?() than the buffer we provide.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kmk/Lucide/gui/printDlg.cpp

    r334 r363  
    222222bool PrintDlg::isPostscriptDevice()
    223223{
    224     long lTech = 0;
     224    LONG lTech = 0;
    225225    HDC hdcPrinterInfo = getInfoDC();
    226226    if ( hdcPrinterInfo != DEV_ERROR ) {
    227         DevQueryCaps( hdcPrinterInfo, CAPS_TECHNOLOGY, sizeof(long), &lTech );
     227        DevQueryCaps( hdcPrinterInfo, CAPS_TECHNOLOGY, 1, &lTech );
    228228        DevCloseDC( hdcPrinterInfo );
    229229    }
Note: See TracChangeset for help on using the changeset viewer.