Changeset 1560
- Timestamp:
- Mar 4, 2011, 1:18:51 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/init.c
r1555 r1560 103 103 20 Nov 10 GKY Check that pTmpDir IsValid and recreate if not found; Fixes hangs caused 104 104 by temp file creation failures. 105 03 Mar 11 SHL Try using FM3INI to create help instance if fm3.hlp not in current directory 105 106 106 107 ***********************************************************************/ … … 926 927 memset(&hini, 0, sizeof(HELPINIT)); 927 928 hini.cb = sizeof(HELPINIT); 928 hini.ulReturnCode = 0;929 hini.pszTutorialName = NULL;929 // hini.ulReturnCode = 0; 930 // hini.pszTutorialName = NULL; 930 931 hini.phtHelpTable = (PHELPTABLE) MAKELONG(ID_HELPTABLE, 0xffff); 931 932 hini.hmodAccelActionBarModule = (HMODULE) 0; 932 hini.idAccelTable = 0;933 hini.idActionBar = 0;933 // hini.idAccelTable = 0; 934 // hini.idActionBar = 0; 934 935 hini.pszHelpWindowTitle = (PSZ)GetPString(IDS_FM2HELPTITLETEXT); 935 936 hini.hmodHelpTableModule = FM3ModHandle; … … 938 939 hwndHelp = WinCreateHelpInstance(hab, &hini); 939 940 if (!hwndHelp) { 940 static CHAR helppath[CCHMAXPATH]; // fixme to be local? 941 941 CHAR helppath[CCHMAXPATH]; 942 942 env = getenv("FM3INI"); 943 943 if (env) { … … 950 950 hini.pszHelpLibraryName = helppath; 951 951 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); 952 954 } 953 955 }
Note:
See TracChangeset
for help on using the changeset viewer.