equal
deleted
inserted
replaced
2565 { |
2565 { |
2566 // Print reset module name |
2566 // Print reset module name |
2567 __TRACE( KInit, ( _L("Loaded reset module[%S]"), &dllName ) ); |
2567 __TRACE( KInit, ( _L("Loaded reset module[%S]"), &dllName ) ); |
2568 } |
2568 } |
2569 |
2569 |
2570 // Verify the UID |
2570 |
2571 TUid KUidTestModule = TUid::Uid ( 0x101FB3E7 ); |
|
2572 TUidType requiredUID( KDynamicLibraryUid, KSharedLibraryUid, KUidTestModule ); |
|
2573 |
|
2574 TUidType moduleUID = resetModule.Type(); |
|
2575 if ( moduleUID != requiredUID ) |
|
2576 { |
|
2577 // New instance can't be created |
|
2578 RDebug::Print( ( _L("STIF TF: Reset module has invalid UID. Aborting loading!") ) ); |
|
2579 __TRACE ( KError, ( CStifLogger::EError, _L("Reset module has invalid UID. Aborting loading!" ) ) ); |
|
2580 return KErrNotSupported; |
|
2581 } |
|
2582 |
2571 |
2583 // Get pointer to first exported function |
2572 // Get pointer to first exported function |
2584 CTestInterfaceFactory libEntry; |
2573 CTestInterfaceFactory libEntry; |
2585 libEntry = (CTestInterfaceFactory) resetModule.Lookup( 1 ); |
2574 libEntry = (CTestInterfaceFactory) resetModule.Lookup( 1 ); |
2586 if ( libEntry == NULL ) |
2575 if ( libEntry == NULL ) |