Skip to content

Commit

Permalink
0003077: Exception при поиске в альтернативных потоках
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Oct 31, 2015
1 parent 55ebe82 commit 522a6ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion far/changelog
@@ -1,4 +1,8 @@
shmuel 28.10.2015 19:12:06 +0200 - build 4450
drkns 31.10.2015 13:07:10 +0200 - build 4451

1. 0003077: Exception при поиске в альтернативных потоках

shmuel 28.10.2015 19:12:06 +0200 - build 4450

1. Мелкий рефакторинг в макросистеме.

Expand Down
4 changes: 1 addition & 3 deletions far/farwinapi.cpp
Expand Up @@ -1372,14 +1372,12 @@ find_handle FindFirstStream(const string& FileName,STREAM_INFO_LEVELS InfoLevel,
Handle->NextOffset = StreamInfo->NextEntryOffset;
if (StreamInfo->StreamNameLength)
{
std::copy_n(StreamInfo->StreamName, StreamInfo->StreamNameLength/sizeof(wchar_t), pFsd->cStreamName);
std::copy_n(std::cbegin(StreamInfo->StreamName), StreamInfo->StreamNameLength/sizeof(wchar_t), pFsd->cStreamName);
pFsd->cStreamName[StreamInfo->StreamNameLength / sizeof(wchar_t)] = L'\0';
pFsd->StreamSize=StreamInfo->StreamSize;
Ret.reset(Handle.release());
}
}

Handle->Object.Close();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4450)m4_dnl
m4_define(BUILD,4451)m4_dnl

0 comments on commit 522a6ef

Please sign in to comment.