-
Notifications
You must be signed in to change notification settings - Fork 0
/
wine-nolinks-staging-3.16.patch
28 lines (25 loc) · 1.22 KB
/
wine-nolinks-staging-3.16.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff -ruN wine-1.9.4/dlls/ntdll/server.c wine-1.9.4/dlls/ntdll/server.c
--- wine-1.9.4/dlls/ntdll/server.c 2016-02-19 08:54:19.000000000 -0600
+++ wine-1.9.4/dlls/ntdll/server.c 2016-02-27 20:52:23.248627007 -0600
@@ -1163,7 +1163,9 @@
mkdir( "drive_c", 0777 );
symlink( "../drive_c", "dosdevices/c:" );
+#if 0 /* wine already has a method to access files in /; no need to make it easy */
symlink( "/", "dosdevices/z:" );
+#endif
done:
if (fd_cwd == -1) fd_cwd = open( "dosdevices/c:", O_RDONLY );
diff -ruN wine-1.9.4/dlls/shell32/shellpath.c wine-1.9.4/dlls/shell32/shellpath.c
--- wine-1.9.4/dlls/shell32/shellpath.c 2016-02-19 08:54:19.000000000 -0600
+++ wine-1.9.4/dlls/shell32/shellpath.c 2016-02-27 20:49:57.342631015 -0600
@@ -5828,7 +5828,11 @@
* 'My Videos', 'My Music' and 'Desktop' in advance, so that the
* _SHRegister*ShellFolders() functions will find everything nice and clean
* and thus will not attempt to create them in the profile directory. */
+ /* tjm: Actually, I'd prefer not to have Windows programs poking around
+ * in $HOME, so don't ever do this. */
+#if 0
_SHCreateSymbolicLinks();
+#endif
hr = _SHRegisterUserShellFolders(TRUE);
if (SUCCEEDED(hr))