comparison host/tools/ecostest/common/eCosTestPlatform.cpp @ 516:36f23a513952

* common/eCosTestPlatform.cpp: "sizeof TCHAR" -> "sizeof (TCHAR)" for portability.
author jld
date Mon, 20 Jan 2003 14:54:34 +0000
parents c37d3a9e1b28
children f83ca6359915
comparison
equal deleted inserted replaced
515:9589be2cc5c9 516:36f23a513952
106 LPCTSTR pszPrefix=ti.Prefix(); 106 LPCTSTR pszPrefix=ti.Prefix();
107 LPCTSTR pszGdb =ti.GdbCmds(); 107 LPCTSTR pszGdb =ti.GdbCmds();
108 LPCTSTR pszInferior=ti.Inferior(); 108 LPCTSTR pszInferior=ti.Inferior();
109 LPCTSTR pszPrompt=ti.Prompt(); 109 LPCTSTR pszPrompt=ti.Prompt();
110 DWORD dwServerSideGdb=ti.ServerSideGdb()?1l:0l; 110 DWORD dwServerSideGdb=ti.ServerSideGdb()?1l:0l;
111 rc&=(ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Prefix"),0,REG_SZ, (CONST BYTE *)pszPrefix,(1+_tcslen(pszPrefix))*sizeof TCHAR)) && 111 rc&=(ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Prefix"),0,REG_SZ, (CONST BYTE *)pszPrefix,(1+_tcslen(pszPrefix))*sizeof (TCHAR))) &&
112 (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Commands"),0,REG_SZ, (CONST BYTE *)pszGdb,(1+_tcslen(pszGdb))*sizeof TCHAR)) && 112 (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Commands"),0,REG_SZ, (CONST BYTE *)pszGdb,(1+_tcslen(pszGdb))*sizeof (TCHAR))) &&
113 (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Inferior"),0,REG_SZ, (CONST BYTE *)pszInferior,(1+_tcslen(pszInferior))*sizeof TCHAR)) && 113 (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Inferior"),0,REG_SZ, (CONST BYTE *)pszInferior,(1+_tcslen(pszInferior))*sizeof (TCHAR))) &&
114 (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Prompt"),0,REG_SZ, (CONST BYTE *)pszPrompt,(1+_tcslen(pszPrompt))*sizeof TCHAR)) && 114 (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("Prompt"),0,REG_SZ, (CONST BYTE *)pszPrompt,(1+_tcslen(pszPrompt))*sizeof (TCHAR))) &&
115 (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("ServerSideGdb"),0,REG_DWORD, (CONST BYTE *)&dwServerSideGdb,sizeof DWORD)); 115 (ERROR_SUCCESS==RegSetValueEx(hKey2,_T("ServerSideGdb"),0,REG_DWORD, (CONST BYTE *)&dwServerSideGdb,sizeof (DWORD)));
116 } 116 }
117 RegCloseKey(hKey2); 117 RegCloseKey(hKey2);
118 } 118 }
119 RegCloseKey(hKey); 119 RegCloseKey(hKey);
120 } 120 }