- Two bugs found by Michael Martin.

svn path=/trunk/; revision=43086
This commit is contained in:
James Tabor 2009-09-19 22:17:25 +00:00
parent 4dfeddc69f
commit 3cb48f661e
2 changed files with 2 additions and 2 deletions

View file

@ -3967,7 +3967,7 @@ User32CallLoadMenuFromKernel(PVOID Arguments, ULONG ArgumentLength)
Common = (PLOADMENU_CALLBACK_ARGUMENTS) Arguments;
Result = (LRESULT)LoadMenuW(Common->hModule, (LPCWSTR)&Common->MenuName);
Result = (LRESULT)LoadMenuW(Common->hModule, IS_INTRESOURCE(Common->MenuName) ? Common->MenuName : (LPCWSTR)&Common->MenuName);
return ZwCallbackReturn(&Result, sizeof(LRESULT), STATUS_SUCCESS);
}

View file

@ -386,7 +386,7 @@ Win32CsrHardError(IN PCSRSS_PROCESS_DATA ProcessData,
CaptionText = (LPSTR)RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, CaptionSize);
RtlCopyMemory(CaptionText, MessageA.Buffer+1, CaptionSize-1);
CaptionSize += 3; // "}\r\n" - 3
CaptionSize += 2; // "}\r\n" - 3
szxCaptionText = (LPWSTR)RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(wchar_t)*CaptionSize+ClientFileNameU.MaximumLength+128);
if( ClientFileNameU.Buffer ) {