Commit 940af1b4 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

advpack: Fix the return type of RegisterOCX.

parent bec09931
......@@ -404,7 +404,8 @@ HRESULT WINAPI RebootCheckOnInstallW(HWND hWnd, LPCWSTR pszINF,
* show [I] How the window should be shown.
*
* RETURNS
* This function does not return anything.
* Success: S_OK.
* Failure: E_FAIL.
*
* NOTES
* OCX - Filename of the OCX to register.
......@@ -413,7 +414,7 @@ HRESULT WINAPI RebootCheckOnInstallW(HWND hWnd, LPCWSTR pszINF,
* 'N' No reboot.
* install_cmd - Command line to pass to the OCX's DllInstall.
*/
void WINAPI RegisterOCX(HWND hWnd, HINSTANCE hInst, LPCSTR cmdline, INT show)
HRESULT WINAPI RegisterOCX(HWND hWnd, HINSTANCE hInst, LPCSTR cmdline, INT show)
{
WCHAR wszBuff[MAX_PATH];
WCHAR* pwcComma;
......@@ -432,7 +433,7 @@ void WINAPI RegisterOCX(HWND hWnd, HINSTANCE hInst, LPCSTR cmdline, INT show)
if (!hm)
{
ERR("Couldn't load DLL: %s\n", debugstr_w(wszBuff));
return;
return E_FAIL;
}
pfnRegister = (DLLREGISTER)GetProcAddress(hm, "DllRegisterServer");
......@@ -452,6 +453,7 @@ void WINAPI RegisterOCX(HWND hWnd, HINSTANCE hInst, LPCSTR cmdline, INT show)
TRACE("Successfully registered OCX\n");
FreeLibrary(hm);
return S_OK;
}
/***********************************************************************
......
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