jdk/src/windows/native/sun/tools/attach/WindowsVirtualMachine.c
changeset 24363 33b869a8806b
parent 23570 6b0a90ae5eaa
child 25657 659ec6a877c0
equal deleted inserted replaced
24362:c4ce2234c96e 24363:33b869a8806b
   341         }
   341         }
   342     } else {
   342     } else {
   343         if (nread == 0) {
   343         if (nread == 0) {
   344             return (jint)-1;        // EOF
   344             return (jint)-1;        // EOF
   345         } else {
   345         } else {
   346             (*env)->SetByteArrayRegion(env, ba, off, (jint)nread, (jbyte *)(buf+off));
   346             (*env)->SetByteArrayRegion(env, ba, off, (jint)nread, (jbyte *)(buf));
   347         }
   347         }
   348     }
   348     }
   349 
   349 
   350     return (jint)nread;
   350     return (jint)nread;
   351 }
   351 }