diff --git a/src/mockobject/MockObject.winxed b/src/mockobject/MockObject.winxed index 2c583fd5..7ea28c48 100644 --- a/src/mockobject/MockObject.winxed +++ b/src/mockobject/MockObject.winxed @@ -15,7 +15,7 @@ namespace Rosella.MockObject function default_mock_factory() { return Rosella.Globals.autoget_global(DEFAULT_MOCK_FACTORY_KEY, - function() { new Rosella.MockObject.Factory(); } + function() { return new Rosella.MockObject.Factory(); } ); } diff --git a/src/random/Random.winxed b/src/random/Random.winxed index 5b5f36e5..d80a5a0d 100644 --- a/src/random/Random.winxed +++ b/src/random/Random.winxed @@ -11,7 +11,7 @@ namespace Rosella.Random function default_uniform_random() { return Rosella.Globals.autoget_global(RANDOM_UNIFORM_GENERATOR, - function() { new Rosella.Random.RandomNumber.MersenneTwister(); } + function() { return new Rosella.Random.RandomNumber.MersenneTwister(); } ); }