Previous 15994 Revisions Next

r1045 Friday 28th September, 2007 at 02:56:51 UTC by Nathan Woods
[Windows] Fixed brain-dead code in win_resource_module()
[src/mess/osd/windows]menu.c

src/mess/osd/windows/menu.c
r1044r1045
19751975
19761976HMODULE win_resource_module(void)
19771977{
1978   static HMODULE module;
1979   if (module == NULL)
1980   {
19781981#ifdef _MSC_VER
1979   // doing this because of lame build problems with EMULATORDLL, and how
1980   // vconv is invoked
1981#ifdef PTR64
1982   return (HMODULE) 0x180000000;
1983#else
1984   return (HMODULE) 0x10000000;
1985#endif
1982      // doing this because of lame build problems with EMULATORDLL, and how
1983      // vconv is invoked
1984      MEMORY_BASIC_INFORMATION info;
1985      if ((VirtualQuery(win_resource_module, &info, sizeof(info))) == sizeof(info))
1986         module = (HMODULE)info.AllocationBase;
19861987#else // !_MSC_VER
1987   static HMODULE module;
1988   if (!module)
19891988      module = LoadLibrary(TEXT(EMULATORDLL));
1989#endif // MSC_VER
1990   }
19901991   return module;
1991#endif // _MSC_VER
19921992}
19931993
19941994

Previous 15994 Revisions Next


© 1998-2018 The MESS Team