We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What happened:
returned success with a file handle.
What you expected to happen:
should return INVALID_HANDLE_VALUE
How to reproduce it (as minimally and precisely as possible):
compile the following code
const wchar_t* filename = argv[1]; HANDLE hFile = CreateFileW(filename, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, 0, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, 0); if (hFile == INVALID_HANDLE_VALUE) { auto lastError = GetLastError(); std::wcerr << L"Failed to create file, error: " << lastError << std::endl; return lastError; } else { std::wcout << L"File created successfully" << std::endl; } CloseHandle(hFile); hFile = CreateFileW(filename, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, 0, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, 0); if (hFile == INVALID_HANDLE_VALUE) { auto lastError = GetLastError(); std::wcerr << L"[Expcted] Failed to create file, error: " << lastError << std::endl; return 0; } else { std::wcout << L"[ERROR! Unexpected]File created successfully" << std::endl; } CloseHandle(hFile);
Environment:
juicefs --version
cat /etc/os-release
The text was updated successfully, but these errors were encountered:
chenjie4255
No branches or pull requests
What happened:
returned success with a file handle.
What you expected to happen:
should return INVALID_HANDLE_VALUE
How to reproduce it (as minimally and precisely as possible):
compile the following code
Environment:
juicefs --version
) or Hadoop Java SDK version: juicefs main branch(2/18/2025)cat /etc/os-release
): windows 10The text was updated successfully, but these errors were encountered: