Ignore:
Timestamp:
Sep 2, 1999, 7:25:19 PM (26 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

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

    r791 r795  
    2121#include "pidl.h"
    2222
     23#include <heapstring.h>
    2324#include <misc.h>
    2425
     
    160161                {
    161162                  ILGetDisplayName( pidlTemp, sTemp);
    162                   if (! (PidlToSicIndex(lpsf, pidlTemp, FALSE, &iIcon)))
     163                  if (! (PidlToSicIndex(lpsf, pidlTemp, FALSE, (UINT*)&iIcon)))
    163164                    iIcon = FM_BLANK_ICON;
    164165                  if ( SFGAO_FOLDER & ulItemAttr)
     
    340341
    341342        if (VERSION_OsIsUnicode() && (lpText!=FM_SEPARATOR))
    342           lpszText = HEAP_strdupWtoA ( GetProcessHeap(),0, lpText);
    343 
    344         ret = FileMenu_AppendItemA(hMenu, (lpszText) ? lpszText : lpText, uID, icon, hMenuPopup, nItemHeight);
     343          lpszText = (LPSTR)HEAP_strdupWtoA ( GetProcessHeap(),0, (LPCWSTR)lpText);
     344
     345        ret = FileMenu_AppendItemA(hMenu, (lpszText) ? lpszText : (LPCSTR)lpText, uID, icon, hMenuPopup, nItemHeight);
    345346
    346347        if (lpszText)
Note: See TracChangeset for help on using the changeset viewer.