Hacker News new | ask | show | jobs
by akerro 1807 days ago
Just found Intel leaks and Gwent on github without any effort. Intel has a few repositories in different formats, plain copy of .svn directory or converted to git. TF2/Portal leak is there as well. All but 2 I found were made by throwaway accounts.
1 comments

Now, was the leaked nt kernel source ever published on github?
I wonder if co-pilot will cough up stuff like these useful macros? Seems like a reasonable hack...

https://github.com/PubDom/Windows-Server-2003/blob/master/co...

  #ifdef _MAC
  # include <string.h>
  # pragma segment ClipBrd

  // On the Macintosh, the clipboard is always open.  We define a macro for
  // OpenClipboard that returns TRUE.  When this is used for error checking,
  // the compiler should optimize away any code that depends on testing this,
  // since it is a constant.
  # define OpenClipboard(x) TRUE

  // On the Macintosh, the clipboard is not closed.  To make all code behave
  // as if everything is OK, we define a macro for CloseClipboard that returns
  // TRUE.  When this is used for error checking, the compiler should optimize
  // away any code that depends on testing this, since it is a constant.
  # define CloseClipboard() TRUE

  #endif // _MAC
Just the kind of trick co-pilot should help us with?