Ignore:
Timestamp:
Feb 2, 2001, 9:41:31 AM (25 years ago)
Author:
bird
Message:

Added new option for the All-in-one-object fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/utils/Win32kCC.c

    r4880 r5051  
    1 /* $Id: Win32kCC.c,v 1.10 2001-01-08 18:05:26 bird Exp $
     1/* $Id: Win32kCC.c,v 1.11 2001-02-02 08:41:31 bird Exp $
    22 *
    33 * Win32CC - Win32k Control Center.
     
    374374                     * Update Config.sys.
    375375                     */
    376                     *pszConfigSys = ulBootDrv - 1 + 'A';
     376                    *pszConfigSys = (char)(ulBootDrv - 1 + 'A');
    377377                    phConfigSys = fopen(pszConfigSys, "r+");
    378378                    if (phConfigSys)
     
    529529            WinSendDlgItemMsg(hwnd, RB_LDR_PE_PE,           BM_SETCHECK,    (MPARAM)(pThis->Options.fPE == FLAGS_PE_PE),        NULL);
    530530            WinSendDlgItemMsg(hwnd, RB_LDR_PE_NOT,          BM_SETCHECK,    (MPARAM)(pThis->Options.fPE == FLAGS_PE_NOT),       NULL);
     531            WinSendDlgItemMsg(hwnd, CK_LDR_PE_ONEOBJECT,    BM_SETCHECK,    (MPARAM)(pThis->Options.fPEOneObject),              NULL);
    531532            WinSendDlgItemMsg(hwnd, SB_LDR_PE_INFOLEVEL,    SPBM_SETCURRENTVALUE, (MPARAM)(pThis->Options.ulInfoLevel),         NULL); /* FIXME to be changed */
    532533            sprintf(szNumber, "%d", pThis->Status.cPe2LxModules);
     
    645646                return (MPARAM)FALSE;
    646647            }
     648            pThis->NewOptions.fPEOneObject = (ULONG)WinSendDlgItemMsg(hwnd, CK_LDR_PE_ONEOBJECT, BM_QUERYCHECK, NULL, NULL);
     649            if (pThis->NewOptions.fPEOneObject > 2)
     650            {
     651                if (fComplain)
     652                    Complain(hwnd, IDS_ERR_NO_PE_RADIOBUTTON);
     653                return (MPARAM)FALSE;
     654            }
    647655            if (!WinSendDlgItemMsg(hwnd, SB_LDR_PE_INFOLEVEL, SPBM_QUERYVALUE, (MPARAM)&ul, MPFROM2SHORT(0, SPBQ_UPDATEIFVALID)))
    648656            {
     
    766774    {
    767775        va_list args;
     776        #pragma info(none)
    768777        va_start(args, id);
     778        #pragma info(restore)
    769779        vsprintf(szMsgOutput, szMsg, args);
    770780        va_end(args);
     
    940950    }
    941951
    942     return (char*)(*pszStr != '\0' ? (char*)pszStr - 1 : NULL);
     952    return (char*)(*pszStr != '\0' ? (const char*)pszStr - 1 : (const char*)NULL);
    943953}
    944954
Note: See TracChangeset for help on using the changeset viewer.