mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Also add registry entries when driver files are already present
svn path=/trunk/; revision=17787
This commit is contained in:
parent
3276e52050
commit
58c1ccc051
1 changed files with 10 additions and 2 deletions
|
@ -124,7 +124,8 @@ FileExists(WCHAR *Path, WCHAR *File)
|
|||
|
||||
if(FileHandle == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
return FALSE;
|
||||
/* If it was a sharing violation the file must already exist */
|
||||
return GetLastError() == ERROR_SHARING_VIOLATION;
|
||||
}
|
||||
|
||||
if(GetFileSize(FileHandle, NULL) <= 0)
|
||||
|
@ -503,7 +504,14 @@ PageWelcomeProc(
|
|||
{
|
||||
if(DriverFilesFound)
|
||||
{
|
||||
/* FIXME - check for existing registry entries! */
|
||||
if(!AddVmwareRegistryEntries())
|
||||
{
|
||||
WCHAR Msg[1024];
|
||||
LoadString(hAppInstance, IDS_FAILEDTOADDREGENTRIES, Msg, sizeof(Msg) / sizeof(WCHAR));
|
||||
MessageBox(GetParent(hwndDlg), Msg, NULL, MB_ICONWARNING);
|
||||
SetWindowLong(hwndDlg, DWL_MSGRESULT, IDD_WELCOMEPAGE);
|
||||
return TRUE;
|
||||
}
|
||||
if(!EnableVmwareDriver(TRUE, TRUE, TRUE))
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in a new issue