Ignore:
Timestamp:
Jun 18, 2009, 12:12:33 PM (16 years ago)
Author:
ydario
Message:

Gdi32 updates.

File:
1 edited

Legend:

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

    r10469 r21304  
    5656static BOOL GetPMQueueName(LPSTR pDeviceName, LPSTR lpszPMQueue, INT cbPMQueue)
    5757{
     58    static HINSTANCE                hInstance = 0;
     59    static PFN_SPLQUERYPMQUEUENAME  pfnSplQueryPMQueueName = NULL;
     60
     61    if(hInstance == 0) hInstance = LoadLibraryA("WINSPOOL.DRV");
     62
     63    if(hInstance) {
     64        pfnSplQueryPMQueueName = (PFN_SPLQUERYPMQUEUENAME)GetProcAddress(hInstance, "SplQueryPMQueueName");
     65        if(pfnSplQueryPMQueueName) {
     66            return pfnSplQueryPMQueueName(pDeviceName, lpszPMQueue, cbPMQueue);
     67        }
     68    }
     69    DebugInt3();
    5870    return FALSE;
    5971}
Note: See TracChangeset for help on using the changeset viewer.