Skip to content

Commit

Permalink
Added overloaded constructor to DokanOptions to allow an int as Options
Browse files Browse the repository at this point in the history
  • Loading branch information
JaniruTEC committed May 28, 2020
1 parent 817b87f commit 317ad69
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,13 @@ public DokanOptions() {
}

public DokanOptions(final String mountPoint, final short threadCount, final EnumIntegerSet<MountOption> mountOptions, final String uncName, final long timeout, final long allocationUnitSize, final long sectorSize) {
this(mountPoint, threadCount, mountOptions.toInt(), uncName, timeout, allocationUnitSize, sectorSize);
}

public DokanOptions(final String mountPoint, final short threadCount, final int mountOptions, final String uncName, final long timeout, final long allocationUnitSize, final long sectorSize) {
MountPoint = new WString(mountPoint);
ThreadCount = threadCount;
Options = mountOptions.toInt();
Options = mountOptions;
if (uncName != null) {
UNCName = new WString(uncName);
} else {
Expand Down

0 comments on commit 317ad69

Please sign in to comment.