Commit 01283ec6 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

kernel32/tests: Test hard linking a file to a different casing of itself.

parent b3553f0e
......@@ -5791,6 +5791,11 @@ static void test_hard_link(void)
ok(GetLastError() == ERROR_ALREADY_EXISTS, "got error %u\n", GetLastError());
SetLastError(0xdeadbeef);
ret = CreateHardLinkA( "WineTest_File1", "winetest_file1", NULL );
ok(!ret, "expected failure\n");
ok(GetLastError() == ERROR_ALREADY_EXISTS, "got error %u\n", GetLastError());
SetLastError(0xdeadbeef);
ret = CreateHardLinkA( "winetest_file3", "winetest_dir1", NULL );
ok(!ret, "expected failure\n");
ok(GetLastError() == ERROR_ACCESS_DENIED, "got error %u\n", GetLastError());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment