Changeset 21512
- Timestamp:
- Dec 6, 2010, 5:24:51 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 9 edited
-
include/win/shell.h (modified) (1 diff)
-
include/win/shlobj.h (modified) (1 diff)
-
include/win/shlwapi.h (modified) (1 diff)
-
include/win/shtypes.h (added)
-
include/win/wine/obj_shellfolder.h (modified) (1 diff)
-
src/comdlg32/filedlg95.c (modified) (1 diff)
-
src/comdlg32/filedlgbrowser.c (modified) (1 diff)
-
src/shell32/shellstring.c (modified) (2 diffs)
-
src/shell32/shlfolder.c (modified) (9 diffs)
-
src/shlwapi/string.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/shell.h
r7822 r21512 84 84 */ 85 85 86 #ifdef __WIN32OS2__87 /****************************************************************************88 * STRRET89 */90 #define STRRET_WSTR 0x000091 #define STRRET_OFFSETA 0x000192 #define STRRET_CSTRA 0x000293 #define STRRET_ASTR 0X000394 #define STRRET_OFFSETW 0X000495 #define STRRET_CSTRW 0X000596 97 98 typedef struct _STRRET99 { UINT uType; /* STRRET_xxx */100 union101 { LPWSTR pOleStr; /* OLESTR that will be freed */102 LPSTR pStr;103 UINT uOffset; /* OffsetINT32o SHITEMID (ANSI) */104 char cStr[MAX_PATH]; /* Buffer to fill in */105 WCHAR cStrW[MAX_PATH];106 }u;107 } STRRET,*LPSTRRET;108 #endif109 110 86 #ifdef __cplusplus 111 87 } /* extern "C" */ -
trunk/include/win/shlobj.h
r21508 r21512 23 23 #include "prsht.h" 24 24 #include "shlguid.h" 25 #include "shtypes.h" 25 26 26 27 #ifdef __cplusplus -
trunk/include/win/shlwapi.h
r8585 r21512 9 9 #include <winuser.h> 10 10 #include <shell.h> 11 #include <shtypes.h> 11 12 12 13 #ifdef __cplusplus -
trunk/include/win/wine/obj_shellfolder.h
r7823 r21512 13 13 #include "wine/obj_oleaut.h" 14 14 #include "winbase.h" 15 #include "sh ell.h"15 #include "shtypes.h" 16 16 17 17 #ifdef __cplusplus 18 18 extern "C" { 19 19 #endif /* defined(__cplusplus) */ 20 21 #ifndef __WIN32OS2__22 /****************************************************************************23 * STRRET24 */25 #define STRRET_WSTR 0x000026 #define STRRET_OFFSETA 0x000127 #define STRRET_CSTRA 0x000228 #define STRRET_ASTR 0X000329 #define STRRET_OFFSETW 0X000430 #define STRRET_CSTRW 0X000531 32 33 typedef struct _STRRET34 { UINT uType; /* STRRET_xxx */35 union36 { LPWSTR pOleStr; /* OLESTR that will be freed */37 LPSTR pStr;38 UINT uOffset; /* OffsetINT32o SHITEMID (ANSI) */39 char cStr[MAX_PATH]; /* Buffer to fill in */40 WCHAR cStrW[MAX_PATH];41 }u;42 } STRRET,*LPSTRRET;43 #endif44 20 45 21 /***************************************************************************** -
trunk/src/comdlg32/filedlg95.c
r10111 r21512 2580 2580 break; 2581 2581 2582 case STRRET_CSTR A:2582 case STRRET_CSTR: 2583 2583 lstrcpynA((LPSTR)dest, src->u.cStr, len); 2584 2584 break; 2585 2585 2586 case STRRET_OFFSET A:2586 case STRRET_OFFSET: 2587 2587 lstrcpynA((LPSTR)dest, ((LPCSTR)&pidl->mkid)+src->u.uOffset, len); 2588 2588 break; -
trunk/src/comdlg32/filedlgbrowser.c
r8792 r21512 107 107 break; 108 108 109 case STRRET_CSTR A:109 case STRRET_CSTR: 110 110 if (len && !MultiByteToWideChar( CP_ACP, 0, src->u.cStr, -1, (LPWSTR)dest, len )) 111 111 ((LPWSTR)dest)[len-1] = 0; 112 112 break; 113 113 114 case STRRET_OFFSET A:114 case STRRET_OFFSET: 115 115 if (pidl) 116 116 { -
trunk/src/shell32/shellstring.c
r8614 r21512 39 39 break; 40 40 41 case STRRET_CSTR A:41 case STRRET_CSTR: 42 42 lstrcpynA((LPSTR)dest, src->u.cStr, len); 43 43 break; 44 44 45 case STRRET_OFFSET A:45 case STRRET_OFFSET: 46 46 lstrcpynA((LPSTR)dest, ((LPCSTR)&pidl->mkid)+src->u.uOffset, len); 47 47 break; … … 72 72 break; 73 73 74 case STRRET_CSTR A:74 case STRRET_CSTR: 75 75 if (!MultiByteToWideChar( CP_ACP, 0, src->u.cStr, -1, dest, len ) && len) 76 76 dest[len-1] = 0; 77 77 break; 78 78 79 case STRRET_OFFSET A:79 case STRRET_OFFSET: 80 80 if (pidl) 81 81 { -
trunk/src/shell32/shlfolder.c
r10185 r21512 1213 1213 return E_OUTOFMEMORY; 1214 1214 } 1215 strRet->uType = STRRET_CSTR A;1215 strRet->uType = STRRET_CSTR; 1216 1216 lstrcpynA(strRet->u.cStr, szPath, MAX_PATH); 1217 1217 … … 1356 1356 psd->fmt = GenericSFHeader[iColumn].fmt; 1357 1357 psd->cxChar = GenericSFHeader[iColumn].cxChar; 1358 psd->str.uType = STRRET_CSTR A;1358 psd->str.uType = STRRET_CSTR; 1359 1359 LoadStringA(shell32_hInstance, GenericSFHeader[iColumn].colnameid, psd->str.u.cStr, MAX_PATH); 1360 1360 return S_OK; … … 1382 1382 } 1383 1383 hr = S_OK; 1384 psd->str.uType = STRRET_CSTR A;1384 psd->str.uType = STRRET_CSTR; 1385 1385 } 1386 1386 … … 2020 2020 return E_OUTOFMEMORY; 2021 2021 } 2022 strRet->uType = STRRET_CSTR A;2022 strRet->uType = STRRET_CSTR; 2023 2023 lstrcpynA(strRet->u.cStr, szPath, MAX_PATH); 2024 2024 … … 2102 2102 psd->fmt = DesktopSFHeader[iColumn].fmt; 2103 2103 psd->cxChar = DesktopSFHeader[iColumn].cxChar; 2104 psd->str.uType = STRRET_CSTR A;2104 psd->str.uType = STRRET_CSTR; 2105 2105 LoadStringA(shell32_hInstance, DesktopSFHeader[iColumn].colnameid, psd->str.u.cStr, MAX_PATH); 2106 2106 return S_OK; … … 2128 2128 } 2129 2129 hr = S_OK; 2130 psd->str.uType = STRRET_CSTR A;2130 psd->str.uType = STRRET_CSTR; 2131 2131 } 2132 2132 … … 2501 2501 return E_OUTOFMEMORY; 2502 2502 } 2503 strRet->uType = STRRET_CSTR A;2503 strRet->uType = STRRET_CSTR; 2504 2504 lstrcpynA(strRet->u.cStr, szPath, MAX_PATH); 2505 2505 … … 2585 2585 psd->fmt = MyComputerSFHeader[iColumn].fmt; 2586 2586 psd->cxChar = MyComputerSFHeader[iColumn].cxChar; 2587 psd->str.uType = STRRET_CSTR A;2587 psd->str.uType = STRRET_CSTR; 2588 2588 LoadStringA(shell32_hInstance, MyComputerSFHeader[iColumn].colnameid, psd->str.u.cStr, MAX_PATH); 2589 2589 return S_OK; … … 2595 2595 2596 2596 psd->str.u.cStr[0] = 0x00; 2597 psd->str.uType = STRRET_CSTR A;2597 psd->str.uType = STRRET_CSTR; 2598 2598 switch(iColumn) 2599 2599 { -
trunk/src/shlwapi/string.c
r8584 r21512 490 490 break; 491 491 492 case STRRET_CSTR A:492 case STRRET_CSTR: 493 493 lstrcpynA((LPSTR)dest, src->u.cStr, len); 494 494 break; 495 495 496 case STRRET_OFFSET A:496 case STRRET_OFFSET: 497 497 lstrcpynA((LPSTR)dest, ((LPCSTR)&pidl->mkid)+src->u.uOffset, len); 498 498 break; … … 535 535 break; 536 536 537 case STRRET_CSTR A:537 case STRRET_CSTR: 538 538 if (!MultiByteToWideChar( CP_ACP, 0, src->u.cStr, -1, dest, len ) && len) 539 539 dest[len-1] = 0; 540 540 break; 541 541 542 case STRRET_OFFSET A:542 case STRRET_OFFSET: 543 543 if (pidl) 544 544 {
Note:
See TracChangeset
for help on using the changeset viewer.
