kernel32: Change all functions to use CDECL.
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Tue, 16 Dec 2008 15:16:10 +0000 (16:16 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 23 Dec 2008 12:09:45 +0000 (13:09 +0100)
dlls/kernel32/path.c
dlls/kernel32/process.c
dlls/ntdll/loader.c
include/winbase.h
programs/start/start.c
programs/winepath/winepath.c

index fca12ccd60fe8832095a9f3d23056c60c737c6fa..b0f2fa0be056013a2a7a7f794be88a0a9bcc9325 100644 (file)
@@ -1583,7 +1583,7 @@ BOOL WINAPI NeedCurrentDirectoryForExePathA( LPCSTR name )
  * 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;
@@ -1607,7 +1607,7 @@ char *wine_get_unix_file_name( LPCWSTR dosW )
  * 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;
index 918ce3e3a2978104aaa2aa861307e3eb78428485..8b1fb9f5fb0ceed08d042c044fa4391a14a64f10 100644 (file)
@@ -956,7 +956,7 @@ static void set_process_name( int argc, char *argv[] )
  *
  * 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};
index 3bada928eecc62986a384fb95a3cac95723f2500..968d7fd68a735886a82a0a0883fb0c4774d15c99 100644 (file)
@@ -2652,7 +2652,7 @@ void __wine_process_init(void)
     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();
index 909a3e25594110c31984b6f0955c840c9ac0b777..f7bb9bf27fff9fc47d94ae066da06f0bc260991c 100644 (file)
@@ -2311,8 +2311,8 @@ WINBASEAPI VOID        WINAPI _LeaveSysLevel(SYSLEVEL*);
 
 /* 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 */
index 2009e78db7d0eb4516439be57439ce9dd1d2e227..d98f215da6eb3dd251b074aded62e8a0e6d7cc7f 100644 (file)
@@ -258,7 +258,7 @@ int wmain (int argc, WCHAR *argv[])
        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;
 
index f4430d31eb667c6983886a73cedddce2aeaae11b..2471803c5d94f5c7713a1478bf846337d13c8f16 100644 (file)
@@ -142,8 +142,8 @@ static int parse_options(const WCHAR *argv[])
  */
 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;