Changeset 21916 for trunk/src/shell32/shlfolder.c
- Timestamp:
 - Dec 18, 2011, 10:28:22 PM (14 years ago)
 - Location:
 - trunk
 - Files:
 - 
      
- 2 edited
 
- 
          
  . (modified) (2 props)
 - 
          
  src/shell32/shlfolder.c (modified) (14 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk
- Property svn:ignore
- 
      
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk  
 - 
      
 - 
Property       svn:mergeinfo
 set to       
/branches/gcc-kmk merged eligible  
 - Property svn:ignore
 - 
      
trunk/src/shell32/shlfolder.c
r21512 r21916 21 21 22 22 23 #ifdef __WIN32OS2__24 #define snprintf(a,b,c,d) sprintf(a,c,d)25 #endif26 23 #include <stdlib.h> 27 24 #include <string.h> … … 47 44 DEFAULT_DEBUG_CHANNEL(shell); 48 45 46 #if defined(__WIN32OS2__) && !defined(__GNUC__) 47 #define snprintf wsnprintfA 48 #endif 49 49 50 50 /*************************************************************************** … … 1214 1214 } 1215 1215 strRet->uType = STRRET_CSTR; 1216 lstrcpynA(strRet-> u.cStr, szPath, MAX_PATH);1216 lstrcpynA(strRet->DUMMYUNIONNAME_DOT cStr, szPath, MAX_PATH); 1217 1217 1218 1218 TRACE("-- (%p)->(%s)\n", This, szPath); … … 1357 1357 psd->cxChar = GenericSFHeader[iColumn].cxChar; 1358 1358 psd->str.uType = STRRET_CSTR; 1359 LoadStringA(shell32_hInstance, GenericSFHeader[iColumn].colnameid, psd->str. u.cStr, MAX_PATH);1359 LoadStringA(shell32_hInstance, GenericSFHeader[iColumn].colnameid, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 1360 1360 return S_OK; 1361 1361 } … … 1369 1369 break; 1370 1370 case 1: /* size */ 1371 _ILGetFileSize (pidl, psd->str. u.cStr, MAX_PATH);1371 _ILGetFileSize (pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 1372 1372 break; 1373 1373 case 2: /* type */ 1374 _ILGetFileType(pidl, psd->str. u.cStr, MAX_PATH);1374 _ILGetFileType(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 1375 1375 break; 1376 1376 case 3: /* date */ 1377 _ILGetFileDate(pidl, psd->str. u.cStr, MAX_PATH);1377 _ILGetFileDate(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 1378 1378 break; 1379 1379 case 4: /* attributes */ 1380 _ILGetFileAttributes(pidl, psd->str. u.cStr, MAX_PATH);1380 _ILGetFileAttributes(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 1381 1381 break; 1382 1382 } … … 2021 2021 } 2022 2022 strRet->uType = STRRET_CSTR; 2023 lstrcpynA(strRet-> u.cStr, szPath, MAX_PATH);2023 lstrcpynA(strRet->DUMMYUNIONNAME_DOT cStr, szPath, MAX_PATH); 2024 2024 2025 2025 … … 2103 2103 psd->cxChar = DesktopSFHeader[iColumn].cxChar; 2104 2104 psd->str.uType = STRRET_CSTR; 2105 LoadStringA(shell32_hInstance, DesktopSFHeader[iColumn].colnameid, psd->str. u.cStr, MAX_PATH);2105 LoadStringA(shell32_hInstance, DesktopSFHeader[iColumn].colnameid, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 2106 2106 return S_OK; 2107 2107 } … … 2115 2115 break; 2116 2116 case 1: /* size */ 2117 _ILGetFileSize (pidl, psd->str. u.cStr, MAX_PATH);2117 _ILGetFileSize (pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 2118 2118 break; 2119 2119 case 2: /* type */ 2120 _ILGetFileType(pidl, psd->str. u.cStr, MAX_PATH);2120 _ILGetFileType(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 2121 2121 break; 2122 2122 case 3: /* date */ 2123 _ILGetFileDate(pidl, psd->str. u.cStr, MAX_PATH);2123 _ILGetFileDate(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 2124 2124 break; 2125 2125 case 4: /* attributes */ 2126 _ILGetFileAttributes(pidl, psd->str. u.cStr, MAX_PATH);2126 _ILGetFileAttributes(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 2127 2127 break; 2128 2128 } … … 2502 2502 } 2503 2503 strRet->uType = STRRET_CSTR; 2504 lstrcpynA(strRet-> u.cStr, szPath, MAX_PATH);2504 lstrcpynA(strRet->DUMMYUNIONNAME_DOT cStr, szPath, MAX_PATH); 2505 2505 2506 2506 … … 2586 2586 psd->cxChar = MyComputerSFHeader[iColumn].cxChar; 2587 2587 psd->str.uType = STRRET_CSTR; 2588 LoadStringA(shell32_hInstance, MyComputerSFHeader[iColumn].colnameid, psd->str. u.cStr, MAX_PATH);2588 LoadStringA(shell32_hInstance, MyComputerSFHeader[iColumn].colnameid, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 2589 2589 return S_OK; 2590 2590 } … … 2594 2594 ULARGE_INTEGER ulBytes; 2595 2595 2596 psd->str. u.cStr[0] = 0x00;2596 psd->str.DUMMYUNIONNAME_DOT cStr[0] = 0x00; 2597 2597 psd->str.uType = STRRET_CSTR; 2598 2598 switch(iColumn) … … 2602 2602 break; 2603 2603 case 1: /* type */ 2604 _ILGetFileType(pidl, psd->str. u.cStr, MAX_PATH);2604 _ILGetFileType(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 2605 2605 break; 2606 2606 case 2: /* total size */ … … 2609 2609 _ILSimpleGetText(pidl, szPath, MAX_PATH); 2610 2610 GetDiskFreeSpaceExA(szPath, NULL, &ulBytes, NULL); 2611 StrFormatByteSizeA(ulBytes.LowPart, psd->str. u.cStr, MAX_PATH);2611 StrFormatByteSizeA(ulBytes.LowPart, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 2612 2612 } 2613 2613 break; … … 2617 2617 _ILSimpleGetText(pidl, szPath, MAX_PATH); 2618 2618 GetDiskFreeSpaceExA(szPath, &ulBytes, NULL, NULL); 2619 StrFormatByteSizeA(ulBytes.LowPart, psd->str. u.cStr, MAX_PATH);2619 StrFormatByteSizeA(ulBytes.LowPart, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH); 2620 2620 } 2621 2621 break;  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  