kerneltest/e32test/hcr/d_hcrut.h
changeset 291 206a6eaaeb71
parent 39 5d2844f35677
--- a/kerneltest/e32test/hcr/d_hcrut.h	Wed Oct 13 13:34:03 2010 +0100
+++ b/kerneltest/e32test/hcr/d_hcrut.h	Mon Oct 18 15:31:10 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of the License "Eclipse Public License v1.0"
@@ -25,6 +25,8 @@
 #include <e32std.h>
 #endif
 
+#define MAX_FILENAME_LEN 64
+
 
 /**
 Interface to the fast-trace memory buffer.
@@ -77,10 +79,14 @@
 	    return DoControl(ECtrlFileFindSettingsInCategory, (TAny*)args);
 	    }
 	
-	inline TUint Test_SwitchFileRepository(const TText* aRepName)
+	// aNameLen includes the null terminator
+	inline TUint Test_SwitchFileRepository(const TText8* aRepName, TInt aNameLen)
 	    {
-	    TAny* args[1];
+	    __ASSERT_ALWAYS((aNameLen<MAX_FILENAME_LEN),User::Panic(_L("d_hcrut.h"), __LINE__));
+	    
+	    TAny* args[2];
 	    args[0] = (TAny*) aRepName;
+	    args[1] = (TAny*) aNameLen;
 	    return DoControl(ECtrlSwitchFileRepository, (TAny*)args);
 	    }