Changeset 12 for trunk/src/helpers/winh.c
- Timestamp:
- Nov 4, 2000, 8:55:45 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/winh.c
r11 r12 2368 2368 // XXX.CMD file as executable: 2369 2369 // fix args to /C XXX.CMD 2370 PSZ pszNewParams = strdup("/C "); 2371 xstrcat(&pszNewParams, pProgDetails->pszExecutable); 2370 XSTRING strNewParams; 2371 xstrInit(&strNewParams, 200); 2372 xstrcpy(&strNewParams, "/C "); 2373 xstrcat(&strNewParams, pProgDetails->pszExecutable); 2372 2374 if (*ppszParams) 2373 2375 { 2374 2376 // append old params 2375 xstrcat(& pszNewParams, " ");2376 xstrcat(& pszNewParams, *ppszParams);2377 xstrcat(&strNewParams, " "); 2378 xstrcat(&strNewParams, *ppszParams); 2377 2379 free(*ppszParams); 2378 2380 } 2379 *ppszParams = pszNewParams;2381 *ppszParams = strNewParams.psz; 2380 2382 // freed by caller 2381 2383 … … 2493 2495 { 2494 2496 // enhanced Win-OS/2 session: 2495 PSZ psz2 = strdup("/3 "); 2497 XSTRING str2; 2498 xstrInit(&str2, 200); 2499 xstrcpy(&str2, "/3 "); 2496 2500 if (pszParamsPatched) 2497 2501 { 2498 2502 // append existing params 2499 xstrcat(& psz2, pszParamsPatched);2503 xstrcat(&str2, pszParamsPatched); 2500 2504 free(pszParamsPatched); 2501 2505 } 2502 2506 2503 pszParamsPatched = psz2;2507 pszParamsPatched = str2.psz; 2504 2508 } 2505 2509 … … 2975 2979 if (pszText) 2976 2980 { 2977 if ( xstrrpl(&pszText, 0, pszSearch, pszReplaceWith, 0) > 0)2981 if (strhrpl(&pszText, 0, pszSearch, pszReplaceWith, 0) > 0) 2978 2982 { 2979 2983 WinSetWindowText(hwnd, pszText);
Note:
See TracChangeset
for help on using the changeset viewer.