Ignore:
Timestamp:
Dec 18, 2011, 10:28:22 PM (14 years ago)
Author:
dmik
Message:

Merge branch gcc-kmk to trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 bin
        2 Makefile.inc
         1env.cmd
         2LocalConfig.kmk
    • Property svn:mergeinfo set to
      /branches/gcc-kmkmergedeligible
  • trunk/src/shell32/shlfolder.c

    r21512 r21916  
    2121
    2222
    23 #ifdef __WIN32OS2__
    24 #define snprintf(a,b,c,d)       sprintf(a,c,d)
    25 #endif
    2623#include <stdlib.h>
    2724#include <string.h>
     
    4744DEFAULT_DEBUG_CHANNEL(shell);
    4845
     46#if defined(__WIN32OS2__) && !defined(__GNUC__)
     47#define snprintf wsnprintfA
     48#endif
    4949
    5050/***************************************************************************
     
    12141214        }
    12151215        strRet->uType = STRRET_CSTR;
    1216         lstrcpynA(strRet->u.cStr, szPath, MAX_PATH);
     1216        lstrcpynA(strRet->DUMMYUNIONNAME_DOT cStr, szPath, MAX_PATH);
    12171217
    12181218        TRACE("-- (%p)->(%s)\n", This, szPath);
     
    13571357          psd->cxChar = GenericSFHeader[iColumn].cxChar;
    13581358          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);
    13601360          return S_OK;
    13611361        }
     
    13691369              break;
    13701370            case 1:     /* size */
    1371               _ILGetFileSize (pidl, psd->str.u.cStr, MAX_PATH);
     1371              _ILGetFileSize (pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH);
    13721372              break;
    13731373            case 2:     /* type */
    1374               _ILGetFileType(pidl, psd->str.u.cStr, MAX_PATH);
     1374              _ILGetFileType(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH);
    13751375              break;
    13761376            case 3:     /* date */
    1377               _ILGetFileDate(pidl, psd->str.u.cStr, MAX_PATH);
     1377              _ILGetFileDate(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH);
    13781378              break;
    13791379            case 4:     /* attributes */
    1380               _ILGetFileAttributes(pidl, psd->str.u.cStr, MAX_PATH);
     1380              _ILGetFileAttributes(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH);
    13811381              break;
    13821382          }
     
    20212021        }
    20222022        strRet->uType = STRRET_CSTR;
    2023         lstrcpynA(strRet->u.cStr, szPath, MAX_PATH);
     2023        lstrcpynA(strRet->DUMMYUNIONNAME_DOT cStr, szPath, MAX_PATH);
    20242024
    20252025
     
    21032103          psd->cxChar = DesktopSFHeader[iColumn].cxChar;
    21042104          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);
    21062106          return S_OK;
    21072107        }
     
    21152115              break;
    21162116            case 1:     /* size */
    2117               _ILGetFileSize (pidl, psd->str.u.cStr, MAX_PATH);
     2117              _ILGetFileSize (pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH);
    21182118              break;
    21192119            case 2:     /* type */
    2120               _ILGetFileType(pidl, psd->str.u.cStr, MAX_PATH);
     2120              _ILGetFileType(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH);
    21212121              break;
    21222122            case 3:     /* date */
    2123               _ILGetFileDate(pidl, psd->str.u.cStr, MAX_PATH);
     2123              _ILGetFileDate(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH);
    21242124              break;
    21252125            case 4:     /* attributes */
    2126               _ILGetFileAttributes(pidl, psd->str.u.cStr, MAX_PATH);
     2126              _ILGetFileAttributes(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH);
    21272127              break;
    21282128          }
     
    25022502        }
    25032503        strRet->uType = STRRET_CSTR;
    2504         lstrcpynA(strRet->u.cStr, szPath, MAX_PATH);
     2504        lstrcpynA(strRet->DUMMYUNIONNAME_DOT cStr, szPath, MAX_PATH);
    25052505
    25062506
     
    25862586          psd->cxChar = MyComputerSFHeader[iColumn].cxChar;
    25872587          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);
    25892589          return S_OK;
    25902590        }
     
    25942594          ULARGE_INTEGER ulBytes;
    25952595
    2596           psd->str.u.cStr[0] = 0x00;
     2596          psd->str.DUMMYUNIONNAME_DOT cStr[0] = 0x00;
    25972597          psd->str.uType = STRRET_CSTR;
    25982598          switch(iColumn)
     
    26022602              break;
    26032603            case 1:     /* type */
    2604               _ILGetFileType(pidl, psd->str.u.cStr, MAX_PATH);
     2604              _ILGetFileType(pidl, psd->str.DUMMYUNIONNAME_DOT cStr, MAX_PATH);
    26052605              break;
    26062606            case 2:     /* total size */
     
    26092609                _ILSimpleGetText(pidl, szPath, MAX_PATH);
    26102610                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);
    26122612              }
    26132613              break;
     
    26172617                _ILSimpleGetText(pidl, szPath, MAX_PATH);
    26182618                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);
    26202620              }
    26212621              break;
Note: See TracChangeset for help on using the changeset viewer.