- Timestamp:
- Sep 2, 1999, 8:18:59 PM (26 years ago)
- Location:
- trunk/src/shell32/new
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/new/shell.cpp
r791 r797 33 33 #include "imagelist.h" 34 34 35 #include <heapstring.h> 35 36 #include <misc.h> 36 37 -
trunk/src/shell32/new/shell32_main.cpp
r791 r797 32 32 #include "wine/undocshell.h" 33 33 34 #include <heapstring.h> 34 35 #include <misc.h> 35 36 -
trunk/src/shell32/new/shellord.cpp
r791 r797 24 24 #include "wine/undocshell.h" 25 25 26 #include <heapstring.h> 26 27 #include <misc.h> 27 28 … … 227 228 { 228 229 if (VERSION_OsIsUnicode()) 229 return OleStrToStrNW ( lpOut, nOut,lpIn, nIn);230 return OleStrToStrNA ( lpOut, nOut,lpIn, nIn);230 return OleStrToStrNW ((LPWSTR)lpOut, nOut, (LPCWSTR)lpIn, nIn); 231 return OleStrToStrNA ((LPSTR)lpOut, nOut, (LPCWSTR)lpIn, nIn); 231 232 } 232 233 … … 254 255 { 255 256 if (VERSION_OsIsUnicode()) 256 return StrToOleStrNW (lpWide, nWide, lpStr, nStr);257 return StrToOleStrNA (lpWide, nWide, lpStr, nStr);257 return StrToOleStrNW (lpWide, nWide, (LPWSTR)lpStr, nStr); 258 return StrToOleStrNA (lpWide, nWide, (LPSTR)lpStr, nStr); 258 259 } 259 260 … … 300 301 pszText = (LPWSTR)idText; 301 302 302 FormatMessageW(FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_ARGUMENT_ARRAY ,szText,0,0,szTemp,256,args); 303 FormatMessageW(FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_ARGUMENT_ARRAY, 304 szText, 305 0, 306 0, 307 szTemp, 308 256, 309 (LPDWORD)args); 303 310 return MessageBoxW(hwnd,szTemp,szTitle,uType); 304 311 } … … 325 332 pszText = (LPSTR)idText; 326 333 327 FormatMessageA(FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_ARGUMENT_ARRAY ,pszText,0,0,szTemp,256, args);334 FormatMessageA(FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_ARGUMENT_ARRAY ,pszText,0,0,szTemp,256,(LPDWORD)args); 328 335 return MessageBoxA(hwnd,szTemp,pszTitle,uType); 329 336 } … … 432 439 433 440 #ifdef MEM_DEBUG 434 ret = (LP VOID) HeapAlloc(GetProcessHeap(),0,len+6);441 ret = (LPBYTE) HeapAlloc(GetProcessHeap(),0,len+6); 435 442 #else 436 ret = (LP VOID) HeapAlloc(GetProcessHeap(),0,len);443 ret = (LPBYTE) HeapAlloc(GetProcessHeap(),0,len); 437 444 #endif 438 445 … … 651 658 BOOL WINAPI ShellExecuteExAW (LPVOID sei) 652 659 { if (VERSION_OsIsUnicode()) 653 return ShellExecuteExW ( sei);654 return ShellExecuteExA ( sei);660 return ShellExecuteExW ((LPSHELLEXECUTEINFOW)sei); 661 return ShellExecuteExA ((LPSHELLEXECUTEINFOA)sei); 655 662 } 656 663 /************************************************************************* … … 691 698 /* process the IDList */ 692 699 if ( (sei->fMask & SEE_MASK_INVOKEIDLIST) == SEE_MASK_INVOKEIDLIST) /*0x0c*/ 693 { SHGetPathFromIDListA ( sei->lpIDList,szApplicationName);700 { SHGetPathFromIDListA ((LPCITEMIDLIST)sei->lpIDList,szApplicationName); 694 701 TRACE("-- idlist=%p (%s)\n", sei->lpIDList, szApplicationName); 695 702 } … … 699 706 pos = strstr(szCommandline, "%I"); 700 707 if (pos) 701 { HGLOBAL hmem = SHAllocShared ( sei->lpIDList, ILGetSize( sei->lpIDList), 0);708 { HGLOBAL hmem = SHAllocShared ( sei->lpIDList, ILGetSize((LPCITEMIDLIST)sei->lpIDList), 0); 702 709 sprintf(szPidl,":%li",(DWORD)SHLockShared(hmem,0) ); 703 710 SHUnlockShared(hmem); … … 879 886 { WARN("0x%04x %s %p %p semi-stub\n", 880 887 hkey, debugstr_w(lpszSubKey), lpszData, lpcbData); 881 return RegQueryValueW( hkey, lpszSubKey, lpszData, lpcbData );888 return RegQueryValueW( hkey, lpszSubKey, lpszData, (LPLONG)lpcbData ); 882 889 } 883 890 … … 894 901 WARN("0x%04x %s %p %p %p %p semi-stub\n", 895 902 hkey, debugstr_w(pszValue), pdwReserved, pdwType, pvData, pcbData); 896 ret = RegQueryValueExW ( hkey, pszValue, pdwReserved, pdwType, pvData, pcbData);903 ret = RegQueryValueExW ( hkey, pszValue, pdwReserved, pdwType, (LPBYTE)pvData, pcbData); 897 904 return ret; 898 905 } … … 996 1003 if (pidl) 997 1004 { 998 lstrcpynAtoW((LPWSTR)dest, ((LP CSTR)&pidl->mkid)+src->u.uOffset, len);1005 lstrcpynAtoW((LPWSTR)dest, ((LPSTR)&pidl->mkid)+src->u.uOffset, len); 999 1006 } 1000 1007 break; … … 1290 1297 { 1291 1298 if (VERSION_OsIsUnicode()) 1292 return StrToOleStrW (lpWideCharStr, lpString);1293 return StrToOleStrA (lpWideCharStr, lpString);1299 return StrToOleStrW (lpWideCharStr, (LPCWSTR)lpString); 1300 return StrToOleStrA (lpWideCharStr, (LPCSTR)lpString); 1294 1301 } 1295 1302 … … 1323 1330 { 1324 1331 if (VERSION_OsIsUnicode()) 1325 return DoEnvironmentSubstW( x,y);1326 return DoEnvironmentSubstA( x,y);1327 } 1328 1332 return DoEnvironmentSubstW((LPWSTR)x, (LPWSTR)y); 1333 return DoEnvironmentSubstA((LPSTR)x, (LPSTR)y); 1334 } 1335 -
trunk/src/shell32/new/shellpath.cpp
r791 r797 21 21 #include "shell32_main.h" 22 22 23 #include <heapstring.h> 23 24 #include <misc.h> 24 25 … … 66 67 BOOL WINAPI PathIsRootAW(LPCVOID x) 67 68 { if (VERSION_OsIsUnicode()) 68 return PathIsRootW( x);69 return PathIsRootA( x);69 return PathIsRootW((LPWSTR)x); 70 return PathIsRootA((LPSTR)x); 70 71 71 72 } … … 112 113 LPCVOID WINAPI PathFindExtensionAW(LPCVOID path) 113 114 { if (VERSION_OsIsUnicode()) 114 return PathFindExtensionW( path);115 return PathFindExtensionA( path);115 return PathFindExtensionW((LPWSTR)path); 116 return PathFindExtensionA((LPSTR)path); 116 117 117 118 } … … 139 140 TRACE("%p->%s\n",path,debugstr_w(path)); 140 141 141 len = CRTDLL_wcslen(path);142 len = lstrlenW(path); 142 143 if (len && path[len-1]!=(WCHAR)'\\') 143 144 { path[len] = (WCHAR)'\\'; … … 149 150 LPVOID WINAPI PathAddBackslashAW(LPVOID path) 150 151 { if(VERSION_OsIsUnicode()) 151 return PathAddBackslashW( path);152 return PathAddBackslashA( path);152 return PathAddBackslashW((LPWSTR)path); 153 return PathAddBackslashA((LPSTR)path); 153 154 } 154 155 … … 179 180 while (*x==' ') x++; 180 181 if (x!=str) 181 CRTDLL_wcscpy(str,x);182 lstrcpyW(str,x); 182 183 if (!*str) 183 184 return str; 184 x=str+ CRTDLL_wcslen(str)-1;185 x=str+lstrlenW(str)-1; 185 186 while (*x==' ') 186 187 x--; … … 191 192 LPVOID WINAPI PathRemoveBlanksAW(LPVOID str) 192 193 { if(VERSION_OsIsUnicode()) 193 return PathRemoveBlanksW( str);194 return PathRemoveBlanksA( str);194 return PathRemoveBlanksW((LPWSTR)str); 195 return PathRemoveBlanksA((LPSTR)str); 195 196 } 196 197 … … 231 232 { 232 233 if(VERSION_OsIsUnicode()) 233 return PathFindFilenameW( fn);234 return PathFindFilenameA( fn);234 return PathFindFilenameW((LPWSTR)fn); 235 return PathFindFilenameA((LPSTR)fn); 235 236 } 236 237 … … 328 329 329 330 if (!lpszFile || !lpszFile[0] || (lpszFile[0]==(WCHAR)'.' && !lpszFile[1]) ) 330 { CRTDLL_wcscpy(szDest,lpszDir);331 { lstrcpyW(szDest,lpszDir); 331 332 return szDest; 332 333 } … … 334 335 /* if lpszFile is a complete path don't care about lpszDir */ 335 336 if (PathIsRootW(lpszFile)) 336 { CRTDLL_wcscpy(szDest,lpszFile);337 { lstrcpyW(szDest,lpszFile); 337 338 } 338 339 else 339 { CRTDLL_wcscpy(sTemp,lpszDir);340 { lstrcpyW(sTemp,lpszDir); 340 341 PathAddBackslashW(sTemp); 341 CRTDLL_wcscat(sTemp,lpszFile);342 CRTDLL_wcscpy(szDest,sTemp);342 lstrcatW(sTemp,lpszFile); 343 lstrcpyW(szDest,sTemp); 343 344 } 344 345 return szDest; … … 346 347 LPVOID WINAPI PathCombineAW(LPVOID szDest, LPCVOID lpszDir, LPCVOID lpszFile) 347 348 { if (VERSION_OsIsUnicode()) 348 return PathCombineW( szDest, lpszDir,lpszFile );349 return PathCombineA( szDest, lpszDir,lpszFile );349 return PathCombineW( (LPWSTR)szDest, (LPWSTR)lpszDir, (LPWSTR)lpszFile ); 350 return PathCombineA( (LPSTR)szDest, (LPSTR)lpszDir, (LPSTR)lpszFile ); 350 351 } 351 352 … … 372 373 BOOL WINAPI PathIsUNCAW (LPCVOID path) 373 374 { if (VERSION_OsIsUnicode()) 374 return PathIsUNCW( path );375 return PathIsUNCA( path );375 return PathIsUNCW( (LPWSTR)path ); 376 return PathIsUNCA( (LPSTR)path ); 376 377 } 377 378 /************************************************************************* … … 395 396 BOOL WINAPI PathIsRelativeAW (LPCVOID path) 396 397 { if (VERSION_OsIsUnicode()) 397 return PathIsRelativeW( path );398 return PathIsRelativeA( path );398 return PathIsRelativeW( (LPWSTR)path ); 399 return PathIsRelativeA( (LPSTR)path ); 399 400 } 400 401 /************************************************************************* … … 412 413 BOOL WINAPI PathIsExeAW (LPCVOID path) 413 414 { if (VERSION_OsIsUnicode()) 414 return PathIsExeW ( path);415 return PathIsExeA( path);415 return PathIsExeW ((LPWSTR)path); 416 return PathIsExeA((LPSTR)path); 416 417 } 417 418 … … 504 505 BOOL WINAPI PathMatchSpecAW(LPVOID name, LPVOID mask) 505 506 { if (VERSION_OsIsUnicode()) 506 return PathMatchSpecW( name,mask );507 return PathMatchSpecA( name,mask );507 return PathMatchSpecW( (LPWSTR)name, (LPWSTR)mask ); 508 return PathMatchSpecA( (LPSTR)name, (LPSTR)mask ); 508 509 } 509 510 /************************************************************************* … … 523 524 BOOL WINAPI PathSetDlgItemPathAW(HWND hDlg, int id, LPCVOID pszPath) 524 525 { if (VERSION_OsIsUnicode()) 525 return PathSetDlgItemPathW(hDlg, id, pszPath);526 return PathSetDlgItemPathA(hDlg, id, pszPath);526 return PathSetDlgItemPathW(hDlg, id, (LPWSTR)pszPath); 527 return PathSetDlgItemPathA(hDlg, id, (LPSTR)pszPath); 527 528 } 528 529 … … 541 542 BOOL WINAPI PathQualifyAW(LPCVOID pszPath) 542 543 { if (VERSION_OsIsUnicode()) 543 return PathQualifyW( pszPath);544 return PathQualifyA( pszPath);544 return PathQualifyW((LPWSTR)pszPath); 545 return PathQualifyA((LPSTR)pszPath); 545 546 } 546 547 … … 591 592 LPCVOID WINAPI PathGetArgsAW(LPVOID cmdline) 592 593 { if (VERSION_OsIsUnicode()) 593 return PathGetArgsW( cmdline);594 return PathGetArgsA( cmdline);594 return PathGetArgsW((LPWSTR)cmdline); 595 return PathGetArgsA((LPSTR)cmdline); 595 596 } 596 597 /************************************************************************* … … 611 612 LPVOID WINAPI PathQuoteSpacesAW (LPCVOID fn) 612 613 { if(VERSION_OsIsUnicode()) 613 return PathQuoteSpacesW( fn);614 return PathQuoteSpacesA( fn);614 return PathQuoteSpacesW((LPWSTR)fn); 615 return PathQuoteSpacesA((LPSTR)fn); 615 616 } 616 617 … … 634 635 } 635 636 VOID WINAPI PathUnquoteSpacesW(LPWSTR str) 636 { DWORD len = CRTDLL_wcslen(str);637 { DWORD len = lstrlenW(str); 637 638 638 639 TRACE("%s\n",debugstr_w(str)); … … 643 644 return; 644 645 str[len-1]='\0'; 645 CRTDLL_wcscpy(str,str+1);646 lstrcpyW(str,str+1); 646 647 return; 647 648 } 648 649 VOID WINAPI PathUnquoteSpacesAW(LPVOID str) 649 650 { if(VERSION_OsIsUnicode()) 650 PathUnquoteSpacesW( str);651 PathUnquoteSpacesA( str);651 PathUnquoteSpacesW((LPWSTR)str); 652 PathUnquoteSpacesA((LPSTR)str); 652 653 } 653 654 … … 699 700 BOOL WINAPI PathFindOnPathAW(LPVOID sFile, LPCVOID sOtherDirs) 700 701 { if (VERSION_OsIsUnicode()) 701 return PathFindOnPathW( sFile,sOtherDirs);702 return PathFindOnPathA( sFile,sOtherDirs);702 return PathFindOnPathW((LPWSTR)sFile, (LPWSTR)sOtherDirs); 703 return PathFindOnPathA((LPSTR)sFile, (LPSTR)sOtherDirs); 703 704 } 704 705 … … 721 722 LPCVOID WINAPI PathGetExtensionAW(LPCVOID path,DWORD y,DWORD z) 722 723 { if (VERSION_OsIsUnicode()) 723 return PathGetExtensionW( path,y,z);724 return PathGetExtensionA( path,y,z);724 return PathGetExtensionW((LPWSTR)path,y,z); 725 return PathGetExtensionA((LPSTR)path,y,z); 725 726 } 726 727 … … 744 745 { 745 746 if (VERSION_OsIsUnicode()) 746 return PathCleanupSpecW( x,y);747 return PathCleanupSpecA( x,y);747 return PathCleanupSpecW((LPWSTR)x,(LPWSTR)y); 748 return PathCleanupSpecA((LPSTR)x,(LPSTR)y); 748 749 } 749 750 … … 786 787 { 787 788 if (VERSION_OsIsUnicode()) 788 return PathProcessCommandW( lpCommand, v, w, x);789 return PathProcessCommandA( lpCommand, v, w, x);789 return PathProcessCommandW((LPWSTR)lpCommand, v, w, x); 790 return PathProcessCommandA((LPSTR)lpCommand, v, w, x); 790 791 } 791 792 … … 994 995 { 995 996 if (VERSION_OsIsUnicode()) 996 return SHGetSpecialFolderPathW (hwndOwner, szPath, csidl, bCreate);997 return SHGetSpecialFolderPathA (hwndOwner, szPath, csidl, bCreate);998 } 997 return SHGetSpecialFolderPathW (hwndOwner, (LPWSTR)szPath, csidl, bCreate); 998 return SHGetSpecialFolderPathA (hwndOwner, (LPSTR)szPath, csidl, bCreate); 999 }
Note:
See TracChangeset
for help on using the changeset viewer.