Commit a68f744a8257ee4a7453b97ea6b68776cb67062b

Authored by perry.werneck@gmail.com
1 parent c4adeadf
Exists in master

Corrigindo empacotamento windows

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
src/jni/pw3270_jni.c
... ... @@ -129,7 +129,7 @@ JNIEXPORT jint JNICALL Java_pw3270_terminal_Connect(JNIEnv *env, jobject obj, js
129 129 int rc;
130 130 const char *hostinfo = (*env)->GetStringUTFChars(env, j_hostinfo, 0);
131 131  
132   - if(QueryCstate() != NOT_CONNECTED)
  132 + if(lib3270_get_connection_state(NULL) != NOT_CONNECTED)
133 133 return EINVAL;
134 134  
135 135 rc = host_connect(hostinfo,1);
... ... @@ -157,17 +157,17 @@ JNIEXPORT jint JNICALL Java_pw3270_terminal_Connect(JNIEnv *env, jobject obj, js
157 157  
158 158 JNIEXPORT jint JNICALL Java_pw3270_terminal_Disconnect(JNIEnv *env, jobject obj)
159 159 {
160   - if(QueryCstate() <= NOT_CONNECTED)
  160 + if(lib3270_get_connection_state(NULL) <= NOT_CONNECTED)
161 161 return EINVAL;
162 162  
163   - host_disconnect(hSession,0);
  163 + lib3270_disconnect(hSession);
164 164  
165 165 return 0;
166 166 }
167 167  
168 168 JNIEXPORT jint JNICALL Java_pw3270_terminal_getConnectionState(JNIEnv *env, jobject obj)
169 169 {
170   - return (jint) QueryCstate();
  170 + return (jint) lib3270_get_connection_state(NULL);
171 171 }
172 172  
173 173 JNIEXPORT jboolean JNICALL Java_pw3270_terminal_isConnected(JNIEnv *env, jobject obj)
... ...