Browse Source

Oops! Fix error messages on WIN32.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4269 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.8
sletz 14 years ago
parent
commit
d904746b42
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      example-clients/midi_latency_test.c

+ 2
- 2
example-clients/midi_latency_test.c View File

@@ -113,7 +113,7 @@ size_t unexpected_messages;
size_t xrun_count; size_t xrun_count;


#ifdef WIN32 #ifdef WIN32
char *semaphore_error_msg;
char semaphore_error_msg[1024];
#endif #endif


static void static void
@@ -196,7 +196,7 @@ get_semaphore_error()
if (! FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, error, if (! FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, error,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
semaphore_error_msg, 1024, NULL)) { semaphore_error_msg, 1024, NULL)) {
sprintf(semaphore_error_msg, 1024, "Unknown OS error code '%d'",
sprintf(semaphore_error_msg, 1023, "Unknown OS error code '%d'",
error); error);
} }
return semaphore_error_msg; return semaphore_error_msg;


Loading…
Cancel
Save