ObjFW  Diff

Differences From Artifact [852391ef43]:

To Artifact [1adfb51735]:


479
480
481
482
483
484
485
486

487
488
489
490
491
492
493
494
479
480
481
482
483
484
485

486

487
488
489
490
491
492
493







-
+
-







			       errNo: errno];

	destination = [OFString stringWithCString: destinationC
					 encoding: encoding
					   length: length];

	key = of_file_attribute_key_symbolic_link_destination;
	[attributes setObject: destination
	[attributes setObject: destination forKey: key];
		       forKey: key];
# else
	HANDLE handle;
	OFString *destination;

	if (func_CreateSymbolicLinkW == NULL)
		return;

528
529
530
531
532
533
534
535

536
537
538
539
540
541
542
543
527
528
529
530
531
532
533

534

535
536
537
538
539
540
541







-
+
-







		    stringWithUTF16String: tmp
				   length: slrb.SubstituteNameLength /
					   sizeof(wchar_t)];

		[attributes setObject: of_file_type_symbolic_link
			       forKey: of_file_attribute_key_type];
		key = of_file_attribute_key_symbolic_link_destination;
		[attributes setObject: destination
		[attributes setObject: destination forKey: key];
			       forKey: key];
#  undef slrb
	} @finally {
		CloseHandle(handle);
	}
# endif
}
#endif