DynamoRIO / DynamoRIO/drmemory
False reports when using SHFileOperation
- Dominant language
- C
- Stars
- 2.7k
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
_From [timurrrr@google.com](https://code.google.com/u/timurrrr@google.com/) on July 22, 2010 06:40:15_
On Windows XP, the following code gives 200+ reports:
#
#include
#include
#pragma comment(lib, "shell32.lib")
int main(void) {
SHFILEOPSTRUCT file_operation = {0};
file_operation.wFunc = FO_DELETE;
file_operation.pFrom = "test.txt\0\0";
file_operation.fFlags = FOF_NOERRORUI | FOF_SILENT | FOF_NOCONFIRMATION;
file_operation.fFlags |= FOF_NORECURSION | FOF_FILESONLY;
SHFileOperation(&file_operation);
return 0;
}
#
cl test.c
help more >test.txt || drmemory.exe -- test.exe
Sample report file is attached.
**Attachment:** [results.txt](http://code.google.com/p/drmemory/issues/detail?id=12)
_Original issue: http://code.google.com/p/drmemory/issues/detail?id=12_
Contributor guide
Assessment
This issue has not been assessed yet.