Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
624 B

  1. #include "project.h"
  2. // REARCHITECT - BobDay - This function needs to be added to KERNEL32. NOPE,
  3. // according to markl we only need this because the critical section
  4. // was located in shared memory. Possible solution here might be to create
  5. // a named event or mutex and synchronize via it. Another possible solution
  6. // might be to move each of the objects for which there is a critical section
  7. // out of the shared memory segment and maintain a per-process data structure.
  8. VOID WINAPI NoThunkReinitializeCriticalSection(
  9. LPCRITICAL_SECTION lpCriticalSection
  10. ) {
  11. InitializeCriticalSection( lpCriticalSection );
  12. }