37 lines
929 B
C
37 lines
929 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <malloc.h>
|
|
#include "windows.h"
|
|
#include "wine.h"
|
|
|
|
_WinMain (int argc, char *argv [])
|
|
{
|
|
int ret_val;
|
|
char filename [4096], *module_name, *resource_file;
|
|
HANDLE hTaskMain, hInstance;
|
|
|
|
/* The libwine resource DLL is temporarily disabled */
|
|
#if 0
|
|
if ((module_name = strchr (argv [0], '/')) == NULL){
|
|
printf ("Error: Can't determine base name for resource loading\n");
|
|
return 0;
|
|
}
|
|
|
|
resource_file = malloc (strlen (++module_name) + 5);
|
|
strcpy (resource_file, module_name);
|
|
strcat (resource_file, ".dll");
|
|
|
|
hInstance = LoadImage (resource_file, 0, 0);
|
|
#endif
|
|
|
|
USER_InitApp( hInstance );
|
|
#if 0
|
|
hTaskMain = CreateNewTask (1); /* This is not correct */
|
|
#endif
|
|
ret_val = WinMain (hInstance, /* hInstance */
|
|
0, /* hPrevInstance */
|
|
"", /* lpszCmdParam */
|
|
SW_NORMAL); /* nCmdShow */
|
|
return ret_val;
|
|
}
|