7 _WinMain (int argc, char *argv [])
10 char filename [4096], *module_name, *resource_file;
11 HANDLE hTaskMain, hInstance;
13 /* The libwine resource DLL is temporarily disabled */
15 if ((module_name = strchr (argv [0], '/')) == NULL){
16 printf ("Error: Can't determine base name for resource loading\n");
20 resource_file = malloc (strlen (++module_name) + 5);
21 strcpy (resource_file, module_name);
22 strcat (resource_file, ".dll");
24 hInstance = LoadImage (resource_file, 0, 0);
27 USER_InitApp( hInstance );
29 hTaskMain = CreateNewTask (1); /* This is not correct */
31 ret_val = WinMain (hInstance, /* hInstance */
32 0, /* hPrevInstance */
33 "", /* lpszCmdParam */
34 SW_NORMAL); /* nCmdShow */