Changeset 6400 in vbox for trunk/src/VBox/Main/ConsoleImpl.cpp
- Timestamp:
- Jan 21, 2008 10:35:19 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r6388 r6400 787 787 const char *Console::sSSMConsoleUnit = "ConsoleData"; 788 788 //static 789 uint32_t Console::sSSMConsoleVer = 0x0001000 0;789 uint32_t Console::sSSMConsoleVer = 0x00010001; 790 790 791 791 /** … … 815 815 uint32_t version = 0; 816 816 vrc = SSMR3Seek (ssm, sSSMConsoleUnit, 0 /* iInstance */, &version); 817 if ( version == sSSMConsoleVer)817 if (SSM_VERSION_MAJOR(version) == SSM_VERSION_MAJOR(sSSMConsoleVer)) 818 818 { 819 819 if (VBOX_SUCCESS (vrc)) … … 883 883 AssertRC (vrc); 884 884 885 // XXX 886 // vrc = SSMR3PutBool (pSSM, folder->writable()); 887 // AssertRC (vrc); 885 vrc = SSMR3PutBool (pSSM, folder->writable()); 886 AssertRC (vrc); 888 887 } 889 888 … … 908 907 LogFlowFunc (("\n")); 909 908 910 if (u32Version != 0 && u32Version != sSSMConsoleVer)909 if (u32Version != 0 && SSM_VERSION_MAJOR_CHANGED(u32Version, sSSMConsoleVer)) 911 910 return VERR_VERSION_MISMATCH; 912 911 … … 935 934 Bstr name; 936 935 Bstr hostPath; 936 bool writable = true; 937 937 938 938 uint32_t szBuf = 0; … … 955 955 delete[] buf; 956 956 957 if (u32Version > 0x00010000) 958 SSMR3GetBool (pSSM, &writable); 959 957 960 ComObjPtr <SharedFolder> sharedFolder; 958 961 sharedFolder.createObject(); 959 HRESULT rc = sharedFolder->init (that, name, hostPath, true); /* TODO: fWritable */962 HRESULT rc = sharedFolder->init (that, name, hostPath, writable); 960 963 AssertComRCReturn (rc, VERR_INTERNAL_ERROR); 961 964
Note:
See TracChangeset
for help on using the changeset viewer.