Changeset 797 for trunk/src/shell32/new/shellord.cpp
- Timestamp:
- Sep 2, 1999, 8:18:59 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.