- len returned from mbstowcs is the required size of the destination string, so only allocate the needed size.
- When doing the actual conversion pass in the size of the ansi string not the needed size of destination.
- These changes were missed in 47527.
svn path=/trunk/; revision=47529
- mbstowcs: Fix incorrect size passed as the second parameter for call to RtlMultiByteToUnicodeN.
Fixes loading assemblies when manifest is in a manifest file due to parsing failure.
svn path=/trunk/; revision=47527
- Fix a bug in the creation of the 'PagingFiles' registry value.
- Set paging file sizes only if both user defined sizes are valid numerical values and display a warning otherwise.
- Translators: Please translate the message strings!
svn path=/trunk/; revision=47525
- The last error messages were swapped in some languages, spotted by Paolo Devoti.
- Added the minimum required disk space also in the debug print.
See issue #5440 for more details.
svn path=/trunk/; revision=47524
[HAL] Define the HalpHardwareInterrupt macro for MSVC too.
[HAL] Replace IRQL_DEBUG with DBG so we always check for incorrect IRQL on debug. I believe incorrect IRQL raise/lower is a common and serious enough error to always be checked for on debug builds without defining some special debug option.
svn path=/trunk/; revision=47519
- Revert the hack in r47514
- The ASSERT is there to make sure the PFN lock is held
- Fix the issue properly by holding the PFN lock while initializing
svn path=/trunk/; revision=47516
msvc backend:
- Start implementing real support for vcxproj files
- Fix generating sln files
- Move msvc rules in a separate folder
- Various fixes
svn path=/trunk/; revision=47511
- Acquire the cancel spin lock before calling IoSetCancelRoutine
- Remove the old cancellation code
- Don't use the CCB stored in the IRP because it could be invalid depending on the state of the IRP
- Simplify thread termination
- Fixes random crash during rpcrt4:ndr_marshall test
svn path=/trunk/; revision=47506
- Create a new default paging file if no paging files exist.
- Set the calculated paging file sizes in the registry.
- Remove predefined paging file name from the hivesys*.inf files.
Fixes bug #4048.
svn path=/trunk/; revision=47505
- Rename co_IntCreateWindowEx to co_UserCreateWindowEx and refactor it to make it readable
- Also fix the sequence of messages in co_UserCreateWindowEx
svn path=/trunk/; revision=47500
- Fix a number of parameter types (LPSTR/LPCSTR instead of PCHAR, PCCHAR) This is not the same, PCCHAR is a char * not a const char *
svn path=/trunk/; revision=47497
- Fix a number of warnings, no actual code change
- Patch by Love Nystrom, improvements by me
See issue #5336 for more details.
svn path=/trunk/; revision=47496
Remove a ";" after an if (), that makes no sense and caused GetNt4SoundDeviceCapabilities to always return without doing anything.
svn path=/trunk/; revision=47494
Improve the reactos-hack, by changing the ";" after an "if (...)" to "(void)0;" to tell the compiler that we intentionally do nothing in the if body.
svn path=/trunk/; revision=47493
Instead of disabling a warning when using "main" as something else then the main function, define it to mainptr (it's used as a pointer variable) globally, this approach is portable.
svn path=/trunk/; revision=47492
- Add some missing NTAPI
- Fix AcpiInterfaceConnectVector and AcpiInterfaceDisconnectVector parameters (ACPI_INTERFACE_STANDARD version 1 not version 2)
- Patch by Amine Khaldi
svn path=/trunk/; revision=47489
Add header guards. They are not neccessary in this case, but better to have them, especially since it uses a compilation unit.
svn path=/trunk/; revision=47488
[NTOS] Use an inline for emitting the iret instruction in C code for portability.
[NTOS] Simplify the MSC assembly in KiSwitchToBootStack.
svn path=/trunk/; revision=47487
- add clang compatible asm version of ldexp and make the code more readable
- constify strndup parameter to match standard
- fix broken pointer comparison in signal()
svn path=/trunk/; revision=47479