Commit 33ec7eb5 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

msi: Tidy up MsiCreateAndVerifyInstallerDirectory a bit.

parent f6170beb
......@@ -1810,26 +1810,32 @@ UINT WINAPI MsiConfigureFeatureW(LPCWSTR szProduct, LPCWSTR szFeature, INSTALLST
return ERROR_SUCCESS;
}
/***********************************************************************
* MsiCreateAndVerifyInstallerDirectory [MSI.@]
*
* Notes: undocumented
*/
UINT WINAPI MsiCreateAndVerifyInstallerDirectory(DWORD dwReserved)
{
WCHAR path[MAX_PATH];
if(dwReserved) {
FIXME("Don't know how to handle argument %ld\n", dwReserved);
return ERROR_CALL_NOT_IMPLEMENTED;
}
TRACE("%ld\n", dwReserved);
if(!GetWindowsDirectoryW(path, MAX_PATH)) {
FIXME("GetWindowsDirectory failed unexpected! Error %ld\n",
GetLastError());
return ERROR_CALL_NOT_IMPLEMENTED;
if (dwReserved)
{
FIXME("dwReserved=%ld\n", dwReserved);
return ERROR_INVALID_PARAMETER;
}
strcatW(path, installerW);
if (!GetWindowsDirectoryW(path, MAX_PATH))
return ERROR_FUNCTION_FAILED;
CreateDirectoryW(path, NULL);
lstrcatW(path, installerW);
return 0;
if (!CreateDirectoryW(path, NULL))
return ERROR_FUNCTION_FAILED;
return ERROR_SUCCESS;
}
/***********************************************************************
......
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