changeset 516:36f23a513952

* common/eCosTestPlatform.cpp: "sizeof TCHAR" -> "sizeof (TCHAR)" for portability.
author jld
date Mon, 20 Jan 2003 14:54:34 +0000
parents 9589be2cc5c9
children 2b2d9aa25330
files host/tools/ecostest/ChangeLog host/tools/ecostest/common/eCosTestPlatform.cpp
diffstat 2 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/host/tools/ecostest/ChangeLog
+++ b/host/tools/ecostest/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-20  John Dallaway  <jld@ecoscentric.com>
+
+	* common/eCosTestPlatform.cpp (CProperties::CreateKey):
+	"sizeof TCHAR" -> "sizeof (TCHAR)" for GNU headers.
+
 2001-02-20  Jonathan Larmour  <jlarmour@redhat.com>
 
 	* common/eCosTestClient.cpp (LocateExecutables): Add /sbin and
--- a/host/tools/ecostest/common/eCosTestPlatform.cpp
+++ b/host/tools/ecostest/common/eCosTestPlatform.cpp
@@ -108,11 +108,11 @@ bool CeCosTestPlatform::SaveToRegistry(H
         LPCTSTR pszInferior=ti.Inferior();
         LPCTSTR pszPrompt=ti.Prompt();
         DWORD dwServerSideGdb=ti.ServerSideGdb()?1l:0l;
-        rc&=(ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Prefix"),0,REG_SZ,   (CONST BYTE *)pszPrefix,(1+_tcslen(pszPrefix))*sizeof TCHAR)) &&
-            (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Commands"),0,REG_SZ,   (CONST BYTE *)pszGdb,(1+_tcslen(pszGdb))*sizeof TCHAR)) &&
-            (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Inferior"),0,REG_SZ,   (CONST BYTE *)pszInferior,(1+_tcslen(pszInferior))*sizeof TCHAR)) &&
-            (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Prompt"),0,REG_SZ,   (CONST BYTE *)pszPrompt,(1+_tcslen(pszPrompt))*sizeof TCHAR)) &&
-            (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("ServerSideGdb"),0,REG_DWORD,   (CONST BYTE *)&dwServerSideGdb,sizeof DWORD));
+        rc&=(ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Prefix"),0,REG_SZ,   (CONST BYTE *)pszPrefix,(1+_tcslen(pszPrefix))*sizeof (TCHAR))) &&
+            (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Commands"),0,REG_SZ,   (CONST BYTE *)pszGdb,(1+_tcslen(pszGdb))*sizeof (TCHAR))) &&
+            (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Inferior"),0,REG_SZ,   (CONST BYTE *)pszInferior,(1+_tcslen(pszInferior))*sizeof (TCHAR))) &&
+            (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Prompt"),0,REG_SZ,   (CONST BYTE *)pszPrompt,(1+_tcslen(pszPrompt))*sizeof (TCHAR))) &&
+            (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("ServerSideGdb"),0,REG_DWORD,   (CONST BYTE *)&dwServerSideGdb,sizeof (DWORD)));
       }
       RegCloseKey(hKey2);
     }