mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Reset the simulated device in the test harness to its default
configuration whenever it is restarted. FossilOrigin-Name: 562d20e662da474ea326165730ecfdfcf9b414ee
This commit is contained in:
@@ -346,9 +346,13 @@ void devsym_register(int iDeviceChar, int iSectorSize){
|
||||
}
|
||||
if( iDeviceChar>=0 ){
|
||||
g.iDeviceChar = iDeviceChar;
|
||||
}else{
|
||||
g.iDeviceChar = 0;
|
||||
}
|
||||
if( iSectorSize>=0 ){
|
||||
g.iSectorSize = iSectorSize;
|
||||
}else{
|
||||
g.iSectorSize = 512;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user