On Wed, 29 Jan 2003, Harald Katzer wrote: > hi wine-users, > > I have a problem with a program, that needs win3x. > Everytime I try to run it under Wine, it says, that it cannot detect > the proper windows version, though I have set the version to emulate > to win31 in .wine/config > > It seems Wine does not care about, which version I want to emulate! > Does someone has a clue about this? > > Harald "windows" = "DOS" = do not work for mz executables. I submitted a patch about it recently, but it fell into the bit bucket. The attached file is a p1 patch that can be applied like the Wine-xxxxxxxx.diff.gz in the README - except I didn't gzip it, so you don't need to gunzip it -, if you'd like to try it. IOW, cd <wine> patch -p1 </where/you/put/the/patch/file or cat version|patch -p1 -d <wine> I always throw in a --dry-run first to make sure I didn't fat-fingerr something. Lawson -- ---oops---
diff -urN was/misc/version.c is/misc/version.c --- was/misc/version.c Tue Oct 8 18:50:14 2002 +++ is/misc/version.c Fri Jan 10 10:54:28 2003 @@ -336,11 +336,12 @@ if (init_done) return; if (!GetModuleFileNameW( 0, buffer, MAX_PATH )) { - WARN( "could not get module file name\n" ); - return; + strncpyW( buffer, GetCommandLineW(), MAX_PATH); + if ((p = strchrW( buffer, ' '))) *p = 0; } init_done = TRUE; appname = buffer; + if ((p = strrchrW( appname, ':' ))) appname = p + 1; if ((p = strrchrW( appname, '/' ))) appname = p + 1; if ((p = strrchrW( appname, '\\' ))) appname = p + 1;