mscoree: Semi-stub for LoadStringRCEx and LoadStringRC.

This commit is contained in:
Paul Chitescu 2008-01-21 18:07:43 +02:00 committed by Alexandre Julliard
parent 8d35fd8d23
commit 961f5fa67a
2 changed files with 24 additions and 2 deletions

View File

@ -2,7 +2,7 @@
18 stub PostError 18 stub PostError
19 stub InitSSAutoEnterThread 19 stub InitSSAutoEnterThread
20 stub UpdateError 20 stub UpdateError
22 stub LoadStringRC 22 stdcall LoadStringRC(long ptr long long)
23 stub ReOpenMetaDataWithMemory 23 stub ReOpenMetaDataWithMemory
@ stub CallFunctionShim @ stub CallFunctionShim
@ -69,7 +69,7 @@
@ stub GetXMLObject @ stub GetXMLObject
@ stdcall LoadLibraryShim(ptr ptr ptr ptr) @ stdcall LoadLibraryShim(ptr ptr ptr ptr)
@ stub LoadLibraryWithPolicyShim @ stub LoadLibraryWithPolicyShim
@ stub LoadStringRCEx @ stdcall LoadStringRCEx(long long ptr long long ptr)
@ stub LockClrVersion @ stub LockClrVersion
@ stub MetaDataGetDispenser @ stub MetaDataGetDispenser
@ stub OpenCtrs @ stub OpenCtrs

View File

@ -273,6 +273,28 @@ HRESULT WINAPI GetVersionFromProcess(HANDLE hProcess, LPWSTR pVersion, DWORD cch
return E_NOTIMPL; return E_NOTIMPL;
} }
HRESULT WINAPI LoadStringRCEx(LCID culture, UINT resId, LPWSTR pBuffer, int iBufLen, int bQuiet, int* pBufLen)
{
HRESULT res = S_OK;
if ((iBufLen <= 0) || !pBuffer)
return E_INVALIDARG;
pBuffer[0] = 0;
if (resId) {
FIXME("(%d, %x, %p, %d, %d, %p): semi-stub\n", culture, resId, pBuffer, iBufLen, bQuiet, pBufLen);
res = E_NOTIMPL;
}
else
res = E_FAIL;
if (pBufLen)
*pBufLen = lstrlenW(pBuffer);
return res;
}
HRESULT WINAPI LoadStringRC(UINT resId, LPWSTR pBuffer, int iBufLen, int bQuiet)
{
return LoadStringRCEx(-1, resId, pBuffer, iBufLen, bQuiet, NULL);
}
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{ {
FIXME("(%p, %p, %p): stub\n", rclsid, riid, ppv); FIXME("(%p, %p, %p): stub\n", rclsid, riid, ppv);