Fix some various unicode problems

svn path=/trunk/; revision=33380
This commit is contained in:
Hervé Poussineau 2008-05-08 18:26:15 +00:00
parent 4198aafc54
commit 618eb75c49
9 changed files with 22 additions and 22 deletions

View file

@ -220,10 +220,10 @@ DxDiagWndProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
return 0;
}
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
int APIENTRY wWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPWSTR lpCmdLine,
int nCmdShow)
{
INITCOMMONCONTROLSEX InitControls;

View file

@ -798,10 +798,10 @@ CreateApplicationWindow(VOID)
}
int WINAPI
WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpszCmdLine,
int nCmdShow)
_tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpszCmdLine,
int nCmdShow)
{
MSG Msg;
int Ret = 1;

View file

@ -185,7 +185,7 @@ BOOL LoadLogFiles(HKEY eventlogKey)
return TRUE;
}
INT main()
INT wmain()
{
WCHAR LogPath[MAX_PATH];
INT RetCode = 0;

View file

@ -2191,7 +2191,7 @@ ServiceMain(DWORD argc, LPTSTR *argv)
int
main(int argc, char *argv[])
wmain(int argc, WCHAR *argv[])
{
DWORD dwError;

View file

@ -1030,9 +1030,9 @@ CreateWizard(VOID)
}
int WINAPI
WinMain(HINSTANCE hInstance,
wWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpszCmdLine,
LPWSTR lpszCmdLine,
int nCmdShow)
{

View file

@ -55,10 +55,10 @@ ServiceMain(
}
INT WINAPI
WinMain(
wWinMain(
IN HINSTANCE hInstance,
IN HINSTANCE hPrevInstance,
IN LPSTR lpCmdLine,
IN LPWSTR lpCmdLine,
IN INT nShowCmd)
{
NTSTATUS Status = STATUS_SUCCESS;

View file

@ -247,10 +247,10 @@ void DisplayMessage(BOOL bConsole, BOOL bSilent, LPCTSTR lpMessage, LPCTSTR lpTi
_tprintf(_T("%s: %s\n\n"),lpTitle,lpMessage);
}
int WINAPI WinMain(
int WINAPI _tWinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLineA,
LPTSTR lpCmdLine,
int nCmdShow
)
{

View file

@ -331,10 +331,10 @@ ATOM RegisterBlankClass(HINSTANCE hInstance, HINSTANCE hPrevInstance)
return Ret;
}
int WINAPI WinMain(
int WINAPI _tWinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLineA,
LPTSTR lpCmdLine,
int nCmdShow
)
{

View file

@ -39,10 +39,10 @@ VOID EnableFileMenuItemByID(UINT Id, BOOL Enable);
VOID CheckLocalEchoMenuItem(BOOL Checked);
VOID Rs232Thread(VOID* Parameter);
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
MSG msg;