Ignore:
Timestamp:
Sep 2, 1999, 8:18:59 PM (26 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/new/shellord.cpp

    r791 r797  
    2424#include "wine/undocshell.h"
    2525
     26#include <heapstring.h>
    2627#include <misc.h>
    2728
     
    227228{
    228229        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);
    231232}
    232233
     
    254255{
    255256        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);
    258259}
    259260
     
    300301          pszText = (LPWSTR)idText;
    301302
    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);
    303310        return MessageBoxW(hwnd,szTemp,szTitle,uType);
    304311}
     
    325332          pszText = (LPSTR)idText;
    326333
    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);
    328335        return MessageBoxA(hwnd,szTemp,pszTitle,uType);
    329336}
     
    432439
    433440#ifdef MEM_DEBUG
    434         ret = (LPVOID) HeapAlloc(GetProcessHeap(),0,len+6);
     441        ret = (LPBYTE) HeapAlloc(GetProcessHeap(),0,len+6);
    435442#else
    436         ret = (LPVOID) HeapAlloc(GetProcessHeap(),0,len);
     443        ret = (LPBYTE) HeapAlloc(GetProcessHeap(),0,len);
    437444#endif
    438445
     
    651658BOOL WINAPI ShellExecuteExAW (LPVOID sei)
    652659{       if (VERSION_OsIsUnicode())
    653           return ShellExecuteExW (sei);
    654         return ShellExecuteExA (sei);
     660          return ShellExecuteExW ((LPSHELLEXECUTEINFOW)sei);
     661        return ShellExecuteExA ((LPSHELLEXECUTEINFOA)sei);
    655662}
    656663/*************************************************************************
     
    691698        /* process the IDList */
    692699        if ( (sei->fMask & SEE_MASK_INVOKEIDLIST) == SEE_MASK_INVOKEIDLIST) /*0x0c*/
    693         { SHGetPathFromIDListA (sei->lpIDList,szApplicationName);
     700        { SHGetPathFromIDListA ((LPCITEMIDLIST)sei->lpIDList,szApplicationName);
    694701          TRACE("-- idlist=%p (%s)\n", sei->lpIDList, szApplicationName);
    695702        }
     
    699706            pos = strstr(szCommandline, "%I");
    700707            if (pos)
    701             { HGLOBAL hmem = SHAllocShared ( sei->lpIDList, ILGetSize(sei->lpIDList), 0);
     708            { HGLOBAL hmem = SHAllocShared ( sei->lpIDList, ILGetSize((LPCITEMIDLIST)sei->lpIDList), 0);
    702709              sprintf(szPidl,":%li",(DWORD)SHLockShared(hmem,0) );
    703710              SHUnlockShared(hmem);
     
    879886{       WARN("0x%04x %s %p %p semi-stub\n",
    880887                hkey, debugstr_w(lpszSubKey), lpszData, lpcbData);
    881         return RegQueryValueW( hkey, lpszSubKey, lpszData, lpcbData );
     888        return RegQueryValueW( hkey, lpszSubKey, lpszData, (LPLONG)lpcbData );
    882889}
    883890
     
    894901        WARN("0x%04x %s %p %p %p %p semi-stub\n",
    895902                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);
    897904        return ret;
    898905}
     
    9961003            if (pidl)
    9971004            {
    998               lstrcpynAtoW((LPWSTR)dest, ((LPCSTR)&pidl->mkid)+src->u.uOffset, len);
     1005              lstrcpynAtoW((LPWSTR)dest, ((LPSTR)&pidl->mkid)+src->u.uOffset, len);
    9991006            }
    10001007            break;
     
    12901297{
    12911298        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);
    12941301}
    12951302
     
    13231330{
    13241331        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.