svn path=/trunk/; revision=17787
if(FileHandle == INVALID_HANDLE_VALUE)
{
if(FileHandle == INVALID_HANDLE_VALUE)
{
+ /* If it was a sharing violation the file must already exist */
+ return GetLastError() == ERROR_SHARING_VIOLATION;
}
if(GetFileSize(FileHandle, NULL) <= 0)
}
if(GetFileSize(FileHandle, NULL) <= 0)
- /* 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))
{
if(!EnableVmwareDriver(TRUE, TRUE, TRUE))
{