Skip to content

Commit

Permalink
Fix LFNAME list_dir efile ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
krestenkrab committed Mar 24, 2013
1 parent 02e1473 commit e1a4c20
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/main/java/erjang/driver/efile/EFile.java
Expand Up @@ -1970,10 +1970,18 @@ void reply_list_directory(String[] files) throws Pausable {
driver_output2(resbuf, null);
}
}

if (isLFNameDriverInterface()) {
ByteBuffer resbuf = ByteBuffer.allocate(1);
resbuf.put(FILE_RESP_LFNAME);
driver_output2(resbuf, null);
} else {

ByteBuffer resbuf = ByteBuffer.allocate(1);
resbuf.put(isUnicodeDriverInterface() ? FILE_RESP_FNAME : FILE_RESP_OK);
driver_output2(resbuf, null);
ByteBuffer resbuf = ByteBuffer.allocate(1);
resbuf.put(isUnicodeDriverInterface() ? FILE_RESP_FNAME : FILE_RESP_OK);
driver_output2(resbuf, null);

}
}

/**
Expand Down

0 comments on commit e1a4c20

Please sign in to comment.