ObjFW  Diff

Differences From Artifact [a3637e3c40]:

To Artifact [5e1c99f438]:


30
31
32
33
34
35
36
37
38

39
40
41
42
43
44
45
46
30
31
32
33
34
35
36


37

38
39
40
41
42
43
44







-
-
+
-







{
	if ((self = [super init])) {
		if (wstr == NULL) {
			length = 0;
			wstring = NULL;
		} else {
			length = wcslen(wstr);
			if (NULL == (wstring =
			    [self getMem: (length + 1) * sizeof(wchar_t)]))
			wstring = [self getMem: (length + 1) * sizeof(wchar_t)];
				return NULL;
			memcpy(wstring, wstr, (length + 1) * sizeof(wchar_t));
		}
	}
	return self;
}

- (wchar_t*)wcString