redone ddraw.h to be able to mix it with w32api style COM header files.

obj_base.h is not needed anymore. Using <objbase.h> instead.
Use Xwindows.h instead of windows.h
do not include win_ms.h
remove extra definition of sleep()
Set HOME to Documents and Settings/username if not set
Use Xming basedir instead of ProjectRoot for system.XWinrc
Fix callback functions to use wBOOL instead of BOOL
Fix compiler warnings. Added debug output.
Fix warning about undefined macro max
This commit is contained in:
Alexander Gottwald 2004-12-05 21:24:48 +00:00
commit 9bd1328c49
14 changed files with 932 additions and 834 deletions

View file

@ -41,6 +41,9 @@ from The Open Group.
#if defined(XKB) && defined(WIN32)
#include "XKBsrv.h"
#endif
#ifdef RELOCATE_PROJECTROOT
#include <shlobj.h>
#endif
/*
@ -622,6 +625,14 @@ winFixupPaths (void)
buffer[sizeof(buffer)-1] = 0;
putenv(buffer);
}
if (getenv("HOME") == NULL)
{
char buffer[MAX_PATH + 5];
strncpy(buffer, "HOME=", 5);
if(SHGetFolderPath(NULL, CSIDL_APPDATA|CSIDL_FLAG_CREATE, NULL, 0,
buffer + 5) == 0)
putenv(buffer);
}
if (!g_fLogFileChanged) {
static char buffer[MAX_PATH];
DWORD size = GetTempPath(sizeof(buffer), buffer);