oledlg: Forward OleUIAddVerbMenuA to OleUIAddVerbMenuW.

This commit is contained in:
Nikolay Sivov 2015-05-14 10:44:42 +03:00 committed by Alexandre Julliard
parent 461deb7322
commit d93781f29b
1 changed files with 21 additions and 11 deletions

View File

@ -98,18 +98,28 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
/***********************************************************************
* OleUIAddVerbMenuA (OLEDLG.1)
*/
BOOL WINAPI OleUIAddVerbMenuA(
LPOLEOBJECT lpOleObj, LPCSTR lpszShortType,
HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
BOOL bAddConvert, UINT idConvert, HMENU *lphMenu)
BOOL WINAPI OleUIAddVerbMenuA(IOleObject *object, LPCSTR shorttype,
HMENU hMenu, UINT uPos, UINT uIDVerbMin, UINT uIDVerbMax,
BOOL addConvert, UINT idConvert, HMENU *lphMenu)
{
FIXME("(%p, %s, %p, %d, %d, %d, %d, %d, %p): stub\n",
lpOleObj, debugstr_a(lpszShortType),
hMenu, uPos, uIDVerbMin, uIDVerbMax,
bAddConvert, idConvert, lphMenu
);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
WCHAR *shorttypeW = NULL;
BOOL ret;
TRACE("(%p, %s, %p, %d, %d, %d, %d, %d, %p)\n", object, debugstr_a(shorttype),
hMenu, uPos, uIDVerbMin, uIDVerbMax, addConvert, idConvert, lphMenu);
if (shorttype)
{
INT len = MultiByteToWideChar(CP_ACP, 0, shorttype, -1, NULL, 0);
shorttypeW = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));
if (shorttypeW)
MultiByteToWideChar(CP_ACP, 0, shorttype, -1, shorttypeW, len);
}
ret = OleUIAddVerbMenuW(object, shorttypeW, hMenu, uPos, uIDVerbMin, uIDVerbMax,
addConvert, idConvert, lphMenu);
HeapFree(GetProcessHeap(), 0, shorttypeW);
return ret;
}
/***********************************************************************