Changeset 773 for trunk/dll/autoview.c
- Timestamp:
- Aug 7, 2007, 11:23:27 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/dll/autoview.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/autoview.c
r763 r773 351 351 if (info) { 352 352 sprintf(p, "**%s%s%s\n", 353 (info->id)? info->id : "",354 (info->id)? " " : "",353 info->id ? info->id : "", 354 info->id ? " " : "", 355 355 GetPString(IDS_ARCHIVETEXT)); 356 356 p += strlen(p); … … 412 412 413 413 static FILEFINDBUF4 ffb[130]; 414 CHAR fullname[CCHMAXPATH + 4]; 415 PSZ pszFullName = fullname, pszCurrFile = currfile, psz; 414 CHAR fullname[CCHMAXPATH + 4]; 416 415 HDIR hdir = HDIR_CREATE; 417 416 ULONG x, nm, ml, mc, bufflen; 418 417 PBYTE fb; 419 418 PFILEFINDBUF4 pffbFile; 420 CHAR *buff, *p = "*"; 421 APIRET rc; 422 423 psz = p; 424 BldFullPathName(pszFullName, pszCurrFile, psz); 425 *p = 0; 419 PSZ pszBuf; 420 PSZ p; 421 APIRET rc; 422 423 BldFullPathName(fullname, currfile, "*"); 426 424 //sprintf(fullname, 427 425 // "%s%s*", … … 452 450 } 453 451 bufflen = (CCHMAXPATHCOMP + 42) * nm; 454 buff = xmalloc(bufflen, pszSrcFile, __LINE__);455 if ( buff) {456 p = buff;452 pszBuf = xmalloc(bufflen, pszSrcFile, __LINE__); 453 if (pszBuf) { 454 p = pszBuf; 457 455 *p = 0; 458 456 fb = (PBYTE) & ffb; … … 497 495 x++; 498 496 } // while 499 if (p - buff >= bufflen)497 if (p - pszBuf >= bufflen) 500 498 Runtime_Error(pszSrcFile, __LINE__, pszBufOvfMsg); 501 if (* buff)502 WinSetWindowText(hwndAutoview, buff);503 free( buff);499 if (*pszBuf) 500 WinSetWindowText(hwndAutoview, pszBuf); 501 free(pszBuf); 504 502 } 505 503 } … … 516 514 PGEA2 pgea; 517 515 PFEA2 pfea; 518 CHAR *value, * buff, *p, *data;516 CHAR *value, *pszBuf, *p, *data; 519 517 USHORT len, type, plen, dlen; 520 518 BOOL readonly = FALSE; … … 542 540 value[pfea->cbValue] = 0; 543 541 if (*(USHORT *) value == EAT_MVMT) { 544 buff = xmalloc(65536, pszSrcFile, __LINE__);545 if ( buff) {546 p = buff;547 * buff = 0;542 pszBuf = xmalloc(65536, pszSrcFile, __LINE__); 543 if (pszBuf) { 544 p = pszBuf; 545 *pszBuf = 0; 548 546 data = value + (sizeof(USHORT) * 3); 549 547 type = *(USHORT *) data; … … 579 577 data += sizeof(USHORT); 580 578 } // while 581 if (p - buff >= 65536) {579 if (p - pszBuf >= 65536) { 582 580 Runtime_Error(pszSrcFile, __LINE__, pszBufOvfMsg); 583 buff[65535] = 0; // Try to stay alive581 pszBuf[65535] = 0; // Try to stay alive 584 582 break; 585 583 } 586 WinSetWindowText(hwndAutoMLE, buff);587 free( buff);584 WinSetWindowText(hwndAutoMLE, pszBuf); 585 free(pszBuf); 588 586 } 589 587 }
Note:
See TracChangeset
for help on using the changeset viewer.
