* Return the full Unix file name for a given path.
* Returned buffer must be freed by caller.
*/
-char *wine_get_unix_file_name( LPCWSTR dosW )
+char CDECL *wine_get_unix_file_name( LPCWSTR dosW )
{
UNICODE_STRING nt_name;
ANSI_STRING unix_name;
* Return the full DOS file name for a given Unix path.
* Returned buffer must be freed by caller.
*/
-WCHAR *wine_get_dos_file_name( LPCSTR str )
+WCHAR CDECL *wine_get_dos_file_name( LPCSTR str )
{
UNICODE_STRING nt_name;
ANSI_STRING unix_name;
*
* Wine initialisation: load and start the main exe file.
*/
-void __wine_kernel_init(void)
+void CDECL __wine_kernel_init(void)
{
static const WCHAR kernel32W[] = {'k','e','r','n','e','l','3','2',0};
static const WCHAR dotW[] = {'.',0};
WINE_MODREF *wm;
NTSTATUS status;
ANSI_STRING func_name;
- void (* DECLSPEC_NORETURN init_func)(void);
+ void (* DECLSPEC_NORETURN CDECL init_func)(void);
extern mode_t FILE_umask;
main_exe_file = thread_init();
/* Wine internal functions */
-extern char *wine_get_unix_file_name( LPCWSTR dos );
-extern WCHAR *wine_get_dos_file_name( LPCSTR str );
+extern char CDECL *wine_get_unix_file_name( LPCWSTR dos );
+extern WCHAR CDECL *wine_get_dos_file_name( LPCSTR str );
/* Interlocked functions */
sei.lpParameters = args;
if (unix_mode) {
- LPWSTR (*wine_get_dos_file_name_ptr)(LPCSTR);
+ LPWSTR (*CDECL wine_get_dos_file_name_ptr)(LPCSTR);
char* multibyte_unixpath;
int multibyte_unixpath_len;
*/
int wmain(int argc, const WCHAR *argv[])
{
- LPSTR (*wine_get_unix_file_name_ptr)(LPCWSTR) = NULL;
- LPWSTR (*wine_get_dos_file_name_ptr)(LPCSTR) = NULL;
+ LPSTR (*CDECL wine_get_unix_file_name_ptr)(LPCWSTR) = NULL;
+ LPWSTR (*CDECL wine_get_dos_file_name_ptr)(LPCSTR) = NULL;
WCHAR dos_pathW[MAX_PATH];
char path[MAX_PATH];
int outputformats;