aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test cases/common/102 threads/threadprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test cases/common/102 threads/threadprog.c b/test cases/common/102 threads/threadprog.c
index 2dff169..47a5d18 100644
--- a/test cases/common/102 threads/threadprog.c
+++ b/test cases/common/102 threads/threadprog.c
@@ -9,9 +9,9 @@ DWORD WINAPI thread_func(LPVOID ignored) {
}
int main(int argc, char **argv) {
- printf("Starting thread.\n");
- HANDLE th;
DWORD id;
+ HANDLE th;
+ printf("Starting thread.\n");
th = CreateThread(NULL, 0, thread_func, NULL, 0, &id);
WaitForSingleObject(th, INFINITE);
printf("Stopped thread.\n");