mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[WINSRV] Fix 64 bit issues
This commit is contained in:
parent
2a5e2a2ab6
commit
3323d117c3
5 changed files with 14 additions and 8 deletions
|
@ -28,7 +28,7 @@ CodePageToCharSet(
|
|||
IN UINT CodePage)
|
||||
{
|
||||
CHARSETINFO CharInfo;
|
||||
if (TranslateCharsetInfo((LPDWORD)CodePage, &CharInfo, TCI_SRCCODEPAGE))
|
||||
if (TranslateCharsetInfo(UlongToPtr(CodePage), &CharInfo, TCI_SRCCODEPAGE))
|
||||
return CharInfo.ciCharset;
|
||||
else
|
||||
return DEFAULT_CHARSET;
|
||||
|
|
|
@ -50,7 +50,7 @@ GRAPHICS_BUFFER_Initialize(OUT PCONSOLE_SCREEN_BUFFER* Buffer,
|
|||
PGRAPHICS_SCREEN_BUFFER NewBuffer = NULL;
|
||||
|
||||
LARGE_INTEGER SectionSize;
|
||||
ULONG ViewSize = 0;
|
||||
SIZE_T ViewSize = 0;
|
||||
|
||||
if (Buffer == NULL || Console == NULL || GraphicsInfo == NULL)
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
|
|
|
@ -77,7 +77,7 @@ GuiConsoleShowConsoleProperties(PGUI_CONSOLE_DATA GuiData,
|
|||
{
|
||||
PCONSOLE_SCREEN_BUFFER ActiveBuffer = GuiData->ActiveBuffer;
|
||||
LARGE_INTEGER SectionSize;
|
||||
ULONG ViewSize = 0;
|
||||
SIZE_T ViewSize = 0;
|
||||
PCONSOLE_STATE_INFO pSharedInfo = NULL;
|
||||
|
||||
/*
|
||||
|
@ -262,7 +262,7 @@ GuiApplyUserSettings(PGUI_CONSOLE_DATA GuiData,
|
|||
PCONSRV_CONSOLE Console = GuiData->Console;
|
||||
PCONSOLE_PROCESS_DATA ProcessData;
|
||||
HANDLE hSection = NULL;
|
||||
ULONG ViewSize = 0;
|
||||
SIZE_T ViewSize = 0;
|
||||
PCONSOLE_STATE_INFO pConInfo = NULL;
|
||||
|
||||
if (!ConDrvValidateConsoleUnsafe((PCONSOLE)Console, CONSOLE_RUNNING, TRUE)) return;
|
||||
|
|
|
@ -38,7 +38,7 @@ CSR_API(SrvRegisterConsoleVDM)
|
|||
if (RegisterVDMRequest->RegisterFlags != 0)
|
||||
{
|
||||
LARGE_INTEGER SectionSize;
|
||||
ULONG Size, ViewSize = 0;
|
||||
SIZE_T Size, ViewSize = 0;
|
||||
HANDLE ProcessHandle;
|
||||
|
||||
/*
|
||||
|
|
|
@ -114,7 +114,7 @@ ULONG
|
|||
NTAPI
|
||||
CreateSystemThreads(PVOID pParam)
|
||||
{
|
||||
NtUserCallOneParam((DWORD)pParam, ONEPARAM_ROUTINE_CREATESYSTEMTHREADS);
|
||||
NtUserCallOneParam((DWORD_PTR)pParam, ONEPARAM_ROUTINE_CREATESYSTEMTHREADS);
|
||||
RtlExitUserThread(0);
|
||||
return 0;
|
||||
}
|
||||
|
@ -292,9 +292,15 @@ CSR_SERVER_DLL_INIT(UserServerDllInitialization)
|
|||
for (i = 0; i < 2; ++i)
|
||||
{
|
||||
Status = RtlCreateUserThread(NtCurrentProcess(),
|
||||
NULL, TRUE, 0, 0, 0,
|
||||
NULL,
|
||||
TRUE,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
CreateSystemThreads,
|
||||
(PVOID)i, &ServerThread, &ClientId);
|
||||
UlongToPtr(i),
|
||||
&ServerThread,
|
||||
&ClientId);
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
NtResumeThread(ServerThread, NULL);
|
||||
|
|
Loading…
Reference in a new issue