pkg://wine-20010131-3.src.rpm:4783077/wine-redhat.patch
info downloads
--- wine/server/registry.c.redhat Thu Jan 18 15:50:29 2001
+++ wine/server/registry.c Thu Jan 18 15:53:42 2001
@@ -1378,6 +1378,23 @@
if (!(filename = malloc( strlen(config) + 8 ))) fatal_error( "out of memory\n" );
strcpy( filename, config );
strcat( filename, "/config" );
+ if (access( filename, R_OK ) && !access( "/etc/wine.reg", R_OK )) {
+ /* If the registry doesn't exist, copy the global one */
+ FILE *in, *out;
+ char buf[1024];
+ in = fopen( "/etc/wine.reg", "r" );
+ if(!in)
+ return;
+ out = fopen( filename, "w" );
+ if(!out) {
+ fclose(in);
+ return;
+ }
+ while(fgets(buf, 1024, in))
+ fputs(buf, out);
+ fclose(in);
+ fclose(out);
+ }
if ((f = fopen( filename, "r" )))
{
struct key *key;
--- wine/winedefault.reg.redhat Fri Jan 12 00:26:07 2001
+++ wine/winedefault.reg Thu Jan 18 14:23:41 2001
@@ -85,7 +85,7 @@
#
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AeDebug]
# command line to start a debugger when an exception occurs
-"Debugger"="debugger/winedbg %ld %ld"
+"Debugger"="/usr/bin/winedbg %ld %ld"
# to 0 if a message box has to be presented before running the debugger
"Auto"="1"