Commit 3c05958272abfcbc57adf9ad836e72433ebae2e4
Exists in
master
and in
5 other branches
Merge branch 'master' of http://softwarepublico.gov.br/gitlab/pw3270/principal
Showing
2 changed files
with
2 additions
and
5 deletions
Show diff stats
src/plugins/hllapi/calls.cc
| @@ -59,7 +59,7 @@ | @@ -59,7 +59,7 @@ | ||
| 59 | return HLLAPI_STATUS_SYSTEM_ERROR; | 59 | return HLLAPI_STATUS_SYSTEM_ERROR; |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | - return hSession ? HLLAPI_STATUS_SUCCESS : HLLAPI_STATUS_SYSTEM_ERROR; | 62 | + return hSession ? HLLAPI_STATUS_SUCCESS : HLLAPI_STATUS_UNAVAILABLE; |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | HLLAPI_API_CALL hllapi_deinit(void) | 65 | HLLAPI_API_CALL hllapi_deinit(void) |
src/plugins/hllapi/hllapi.c
| @@ -135,10 +135,7 @@ static int connect_ps(char *buffer, unsigned short *length, unsigned short *rc) | @@ -135,10 +135,7 @@ static int connect_ps(char *buffer, unsigned short *length, unsigned short *rc) | ||
| 135 | buffer = tempbuffer; | 135 | buffer = tempbuffer; |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | - if(hllapi_init(buffer) == 0) | ||
| 139 | - *rc = HLLAPI_STATUS_SUCCESS; | ||
| 140 | - else | ||
| 141 | - *rc = HLLAPI_STATUS_UNAVAILABLE; | 138 | + *rc = hllapi_init(buffer); |
| 142 | 139 | ||
| 143 | if(tempbuffer) | 140 | if(tempbuffer) |
| 144 | free(tempbuffer); | 141 | free(tempbuffer); |