TellUsbD101.cpp: Ported r53 (bugfix when returning a string) from trunk.
This commit is contained in:
parent
1a1b386c21
commit
9a594d4c1c
1 changed files with 3 additions and 0 deletions
|
@ -139,6 +139,7 @@ char * __stdcall devGetName(int intDeviceId){
|
|||
try{
|
||||
TelldusSettings ts;
|
||||
strReturn = ts.getName(intDeviceId);
|
||||
strReturn = (char *)SysAllocStringByteLen (strReturn, lstrlen(strReturn));
|
||||
}
|
||||
catch(exception e){
|
||||
strReturn = "";
|
||||
|
@ -165,6 +166,7 @@ char* __stdcall devGetVendor(int intDeviceId){
|
|||
try{
|
||||
TelldusSettings ts;
|
||||
strReturn = ts.getVendor(intDeviceId);
|
||||
strReturn = (char *)SysAllocStringByteLen (strReturn, lstrlen(strReturn));
|
||||
}
|
||||
catch(exception e){
|
||||
strReturn = "";
|
||||
|
@ -191,6 +193,7 @@ bool __stdcall devSetVendor(int intDeviceId, char* strVendor){
|
|||
try{
|
||||
TelldusSettings ts;
|
||||
strReturn = ts.getModel(intDeviceId);
|
||||
strReturn = (char *)SysAllocStringByteLen (strReturn, lstrlen(strReturn));
|
||||
}
|
||||
catch(exception e){
|
||||
strReturn = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue