Skip to content

Commit fcfcf7a

Browse files
committed
[USER32] Move related functions close to each other.
1 parent 5e4b3c7 commit fcfcf7a

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

win32ss/user/user32/windows/messagebox.c

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,20 @@ MessageBoxA(
783783
return MessageBoxExA(hWnd, lpText, lpCaption, uType, LANG_NEUTRAL);
784784
}
785785

786+
/*
787+
* @implemented
788+
*/
789+
int
790+
WINAPI
791+
MessageBoxW(
792+
IN HWND hWnd,
793+
IN LPCWSTR lpText,
794+
IN LPCWSTR lpCaption,
795+
IN UINT uType)
796+
{
797+
return MessageBoxExW(hWnd, lpText, lpCaption, uType, LANG_NEUTRAL);
798+
}
799+
786800

787801
/*
788802
* @implemented
@@ -812,7 +826,6 @@ MessageBoxExA(
812826
return MessageBoxIndirectA(&msgbox);
813827
}
814828

815-
816829
/*
817830
* @implemented
818831
*/
@@ -920,7 +933,6 @@ MessageBoxIndirectA(
920933
return ret;
921934
}
922935

923-
924936
/*
925937
* @implemented
926938
*/
@@ -933,20 +945,6 @@ MessageBoxIndirectW(
933945
}
934946

935947

936-
/*
937-
* @implemented
938-
*/
939-
int
940-
WINAPI
941-
MessageBoxW(
942-
IN HWND hWnd,
943-
IN LPCWSTR lpText,
944-
IN LPCWSTR lpCaption,
945-
IN UINT uType)
946-
{
947-
return MessageBoxExW(hWnd, lpText, lpCaption, uType, LANG_NEUTRAL);
948-
}
949-
950948
/*
951949
* @implemented
952950
*/
@@ -958,7 +956,7 @@ MessageBoxTimeoutA(
958956
IN LPCSTR lpCaption,
959957
IN UINT uType,
960958
IN WORD wLanguageId,
961-
IN DWORD dwTime)
959+
IN DWORD dwTimeout)
962960
{
963961
MSGBOXPARAMSW msgboxW;
964962
UNICODE_STRING textW, captionW;
@@ -985,7 +983,7 @@ MessageBoxTimeoutA(
985983
msgboxW.lpfnMsgBoxCallback = NULL;
986984
msgboxW.dwLanguageId = wLanguageId;
987985

988-
ret = MessageBoxTimeoutIndirectW(&msgboxW, (UINT)dwTime);
986+
ret = MessageBoxTimeoutIndirectW(&msgboxW, (UINT)dwTimeout);
989987

990988
if (!IS_INTRESOURCE(textW.Buffer))
991989
RtlFreeUnicodeString(&textW);
@@ -1007,7 +1005,7 @@ MessageBoxTimeoutW(
10071005
IN LPCWSTR lpCaption,
10081006
IN UINT uType,
10091007
IN WORD wLanguageId,
1010-
IN DWORD dwTime)
1008+
IN DWORD dwTimeout)
10111009
{
10121010
MSGBOXPARAMSW msgbox;
10131011

@@ -1022,7 +1020,7 @@ MessageBoxTimeoutW(
10221020
msgbox.lpfnMsgBoxCallback = NULL;
10231021
msgbox.dwLanguageId = wLanguageId;
10241022

1025-
return MessageBoxTimeoutIndirectW(&msgbox, (UINT)dwTime);
1023+
return MessageBoxTimeoutIndirectW(&msgbox, (UINT)dwTimeout);
10261024
}
10271025

10281026

0 commit comments

Comments
 (0)