mirror of
https://github.com/reactos/reactos.git
synced 2025-06-23 01:30:16 +00:00
Fix 64bit issues.
svn path=/branches/ros-amd64-bringup/; revision=41485
This commit is contained in:
parent
cdaa1f6d82
commit
e71bc2b3e6
2 changed files with 5 additions and 5 deletions
|
@ -65,7 +65,7 @@ ConioConsoleCtrlEventTimeout(DWORD Event, PCSRSS_PROCESS_DATA ProcessData, DWORD
|
||||||
|
|
||||||
Thread = CreateRemoteThread(ProcessData->Process, NULL, 0,
|
Thread = CreateRemoteThread(ProcessData->Process, NULL, 0,
|
||||||
(LPTHREAD_START_ROUTINE) ProcessData->CtrlDispatcher,
|
(LPTHREAD_START_ROUTINE) ProcessData->CtrlDispatcher,
|
||||||
(PVOID) Event, 0, NULL);
|
UlongToPtr(Event), 0, NULL);
|
||||||
if (NULL == Thread)
|
if (NULL == Thread)
|
||||||
{
|
{
|
||||||
DPRINT1("Failed thread creation (Error: 0x%x)\n", GetLastError());
|
DPRINT1("Failed thread creation (Error: 0x%x)\n", GetLastError());
|
||||||
|
|
|
@ -190,7 +190,7 @@ Win32CsrHardError(IN PCSRSS_PROCESS_DATA ProcessData,
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
ULONG nParam = 0;
|
ULONG nParam = 0;
|
||||||
PRTL_MESSAGE_RESOURCE_ENTRY MessageResource;
|
PRTL_MESSAGE_RESOURCE_ENTRY MessageResource;
|
||||||
ULONG ParameterList[MAXIMUM_HARDERROR_PARAMETERS];
|
ULONG_PTR ParameterList[MAXIMUM_HARDERROR_PARAMETERS];
|
||||||
LPSTR CaptionText, MessageBody;
|
LPSTR CaptionText, MessageBody;
|
||||||
LPWSTR szxCaptionText, szxMessageBody;
|
LPWSTR szxCaptionText, szxMessageBody;
|
||||||
DWORD SizeOfAllUnicodeStrings = 0;
|
DWORD SizeOfAllUnicodeStrings = 0;
|
||||||
|
@ -330,7 +330,7 @@ Win32CsrHardError(IN PCSRSS_PROCESS_DATA ProcessData,
|
||||||
ParameterStringU.MaximumLength = TempStringU.MaximumLength;
|
ParameterStringU.MaximumLength = TempStringU.MaximumLength;
|
||||||
DPRINT("ParameterStringU=\'%wZ\'\n", &ParameterStringU);
|
DPRINT("ParameterStringU=\'%wZ\'\n", &ParameterStringU);
|
||||||
RtlUnicodeStringToAnsiString(&ParamStringA, &ParameterStringU, TRUE);
|
RtlUnicodeStringToAnsiString(&ParamStringA, &ParameterStringU, TRUE);
|
||||||
ParameterList[nParam] = (ULONG)ParamStringA.Buffer;
|
ParameterList[nParam] = (ULONG_PTR)ParamStringA.Buffer;
|
||||||
SizeOfAllUnicodeStrings += ParamStringA.MaximumLength;
|
SizeOfAllUnicodeStrings += ParamStringA.MaximumLength;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -345,7 +345,7 @@ Win32CsrHardError(IN PCSRSS_PROCESS_DATA ProcessData,
|
||||||
// get text string of the error code
|
// get text string of the error code
|
||||||
Status = RtlFindMessage(
|
Status = RtlFindMessage(
|
||||||
(PVOID)GetModuleHandle(TEXT("ntdll")),
|
(PVOID)GetModuleHandle(TEXT("ntdll")),
|
||||||
(ULONG)RT_MESSAGETABLE,
|
(ULONG_PTR)RT_MESSAGETABLE,
|
||||||
LANG_NEUTRAL,
|
LANG_NEUTRAL,
|
||||||
HardErrorMessage->Status,
|
HardErrorMessage->Status,
|
||||||
&MessageResource );
|
&MessageResource );
|
||||||
|
@ -412,7 +412,7 @@ Win32CsrHardError(IN PCSRSS_PROCESS_DATA ProcessData,
|
||||||
MessageBody = NULL;
|
MessageBody = NULL;
|
||||||
Status = RtlFindMessage(
|
Status = RtlFindMessage(
|
||||||
(PVOID)GetModuleHandle(TEXT("ntdll")),
|
(PVOID)GetModuleHandle(TEXT("ntdll")),
|
||||||
(ULONG)RT_MESSAGETABLE,
|
(ULONG_PTR)RT_MESSAGETABLE,
|
||||||
LANG_NEUTRAL,
|
LANG_NEUTRAL,
|
||||||
ParameterList[0],
|
ParameterList[0],
|
||||||
&MsgResException);
|
&MsgResException);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue