Skip to content

Commit

Permalink
in debug mode don't derive scrobsub pipename from sid (to make debugg…
Browse files Browse the repository at this point in the history
…ing between apps easier)
  • Loading branch information
dougma committed Sep 2, 2009
1 parent 619ac80 commit fae4f66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/c++/win/scrobSubPipeName.cpp
Expand Up @@ -68,6 +68,7 @@ scrobSubPipeName(string* pipeName)
{
#define PIPE_PREFIX "\\\\.\\pipe\\lastfm_scrobsub_"

#ifdef NDEBUG
bool ok = false;

HANDLE hToken;
Expand All @@ -93,5 +94,9 @@ scrobSubPipeName(string* pipeName)
}

return ok ? 0 : GetLastError();
#else
pipeName->assign(PIPE_PREFIX "debug");
return 0;
#endif
}

0 comments on commit fae4f66

Please sign in to comment.