Commit d93781f2 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

oledlg: Forward OleUIAddVerbMenuA to OleUIAddVerbMenuW.

parent 461deb73
......@@ -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;
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment