Changeset 1560


Ignore:
Timestamp:
Mar 4, 2011, 1:18:51 AM (14 years ago)
Author:
Steven Levine
Message:

Try using FM3INI to create help instance if fm3.hlp not in current directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1555 r1560  
    103103  20 Nov 10 GKY Check that pTmpDir IsValid and recreate if not found; Fixes hangs caused
    104104                by temp file creation failures.
     105  03 Mar 11 SHL Try using FM3INI to create help instance if fm3.hlp not in current directory
    105106
    106107***********************************************************************/
     
    926927  memset(&hini, 0, sizeof(HELPINIT));
    927928  hini.cb = sizeof(HELPINIT);
    928   hini.ulReturnCode = 0;
    929   hini.pszTutorialName = NULL;
     929  // hini.ulReturnCode = 0;
     930  // hini.pszTutorialName = NULL;
    930931  hini.phtHelpTable = (PHELPTABLE) MAKELONG(ID_HELPTABLE, 0xffff);
    931932  hini.hmodAccelActionBarModule = (HMODULE) 0;
    932   hini.idAccelTable = 0;
    933   hini.idActionBar = 0;
     933  // hini.idAccelTable = 0;
     934  // hini.idActionBar = 0;
    934935  hini.pszHelpWindowTitle = (PSZ)GetPString(IDS_FM2HELPTITLETEXT);
    935936  hini.hmodHelpTableModule = FM3ModHandle;
     
    938939  hwndHelp = WinCreateHelpInstance(hab, &hini);
    939940  if (!hwndHelp) {
    940     static CHAR helppath[CCHMAXPATH];   // fixme to be local?
    941 
     941    CHAR helppath[CCHMAXPATH];
    942942    env = getenv("FM3INI");
    943943    if (env) {
     
    950950          hini.pszHelpLibraryName = helppath;
    951951          hwndHelp = WinCreateHelpInstance(hab, &hini);
     952          if (!hwndHelp)
     953            Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__, "WinCreateHelpInstance failed for %s with error 0x%x", hini.pszHelpLibraryName, hini.ulReturnCode);
    952954        }
    953955      }
Note: See TracChangeset for help on using the changeset viewer.