summaryrefslogtreecommitdiff
path: root/src/VBox/Devices/Storage/DrvHostBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Devices/Storage/DrvHostBase.cpp')
-rw-r--r--src/VBox/Devices/Storage/DrvHostBase.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/VBox/Devices/Storage/DrvHostBase.cpp b/src/VBox/Devices/Storage/DrvHostBase.cpp
index cf2cbdd1..5c588f20 100644
--- a/src/VBox/Devices/Storage/DrvHostBase.cpp
+++ b/src/VBox/Devices/Storage/DrvHostBase.cpp
@@ -4,7 +4,7 @@
*/
/*
- * Copyright (C) 2006-2007 Oracle Corporation
+ * Copyright (C) 2006-2014 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
@@ -872,7 +872,7 @@ static int drvHostBaseOpen(PDRVHOSTBASE pThis, PRTFILE pFileDevice, bool fReadOn
else
{
strcpy(szName1, *pszVendor ? pszVendor : pszProduct);
- RTStrPrintf(szName2, sizeof(szName2), "%s %s (#%u)", *pszVendor ? pszVendor : pszProduct, i);
+ RTStrPrintf(szName2, sizeof(szName2), "%s (#%u)", *pszVendor ? pszVendor : pszProduct, i);
}
}
else
@@ -1486,7 +1486,7 @@ static LRESULT CALLBACK DeviceChangeWindowProc(HWND hwnd, UINT uMsg, WPARAM wPar
Log2(("DeviceChangeWindowProc: hwnd=%08x uMsg=%08x\n", hwnd, uMsg));
if (uMsg == WM_DESTROY)
{
- PDRVHOSTBASE pThis = (PDRVHOSTBASE)GetWindowLong(hwnd, GWLP_USERDATA);
+ PDRVHOSTBASE pThis = (PDRVHOSTBASE)GetWindowLongPtr(hwnd, GWLP_USERDATA);
if (pThis)
ASMAtomicXchgSize(&pThis->hwndDeviceChange, NULL);
PostQuitMessage(0);
@@ -1560,7 +1560,7 @@ static DECLCALLBACK(int) drvHostBaseMediaThread(RTTHREAD ThreadSelf, void *pvUse
memset(&s_classDeviceChange, 0, sizeof(s_classDeviceChange));
s_classDeviceChange.lpfnWndProc = DeviceChangeWindowProc;
s_classDeviceChange.lpszClassName = "VBOX_DeviceChangeClass";
- s_classDeviceChange.hInstance = GetModuleHandle("VBOXDD.DLL");
+ s_classDeviceChange.hInstance = GetModuleHandle("VBoxDD.dll");
Assert(s_classDeviceChange.hInstance);
s_hAtomDeviceChange = RegisterClassA(&s_classDeviceChange);
Assert(s_hAtomDeviceChange);
@@ -1877,6 +1877,7 @@ int DRVHostBaseInitData(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, PDMBLOCKTYPE enmType
#endif
pThis->enmType = enmType;
//pThis->cErrors = 0;
+ pThis->fAttachFailError = true; /* It's an error until we've read the config. */
pThis->pfnGetMediaSize = drvHostBaseGetMediaSize;
@@ -2078,6 +2079,8 @@ int DRVHostBaseInitFinish(PDRVHOSTBASE pThis)
case PDMBLOCKTYPE_FLOPPY_1_20:
case PDMBLOCKTYPE_FLOPPY_1_44:
case PDMBLOCKTYPE_FLOPPY_2_88:
+ case PDMBLOCKTYPE_FLOPPY_FAKE_15_6:
+ case PDMBLOCKTYPE_FLOPPY_FAKE_63_5:
if (uDriveType != DRIVE_REMOVABLE)
{
AssertMsgFailed(("Configuration error: '%s' is not a floppy (type=%d)\n",