Leaked source code of windows server 2003
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.

58 lines
1.5 KiB

  1. /*****************************************************************************
  2. * Copyright (c) 1998-2001 Microsoft Corporation, All Rights Reserved
  3. *
  4. * All Rights Reserved
  5. *
  6. * This software is furnished under a license and may be used and copied
  7. * only in accordance with the terms of such license and with the inclusion
  8. * of the above copyright notice. This software or any other copies thereof
  9. * may not be provided or otherwise made available to any other person. No
  10. * title to and ownership of the software is hereby transferred.
  11. *****************************************************************************/
  12. //============================================================================
  13. //
  14. // CGlobal.cpp -- Global functions
  15. //
  16. // Copyright (c) 1998-2001 Microsoft Corporation, All Rights Reserved
  17. //
  18. // Revisions: 6/26/98 a-kevhu Created
  19. //
  20. //============================================================================
  21. #include "precomp.h"
  22. #include "CGlobal.h"
  23. /*
  24. void CInternalThrowError(DWORD dwStatus, LPCWSTR lpFilename, int line)
  25. {
  26. #ifdef _DEBUG
  27. // print the error for debug builds...
  28. WCHAR string[2*MAX_PATH];
  29. wsprintf( string, "C Library Win32 Error 0x%08x(%d) at %s line %d\n",
  30. dwStatus, dwStatus, lpFilename, line);
  31. OutputDebugString(string);
  32. #endif
  33. #if __C_THROW_EXCEPTIONS__
  34. // throw exception for fatal errors...
  35. throw dwStatus;
  36. #endif
  37. }
  38. */