src/thread/win32/SDL_systhread.c
changeset 1470 d47d96962fcc
parent 1433 bb6839704ed6
child 1471 9fb0eee04dd9
     1.1 --- a/src/thread/win32/SDL_systhread.c	Mon Mar 06 01:34:36 2006 +0000
     1.2 +++ b/src/thread/win32/SDL_systhread.c	Mon Mar 06 06:00:45 2006 +0000
     1.3 @@ -59,16 +59,16 @@
     1.4  int SDL_SYS_CreateThread(SDL_Thread *thread, void *args, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
     1.5  {
     1.6  	unsigned threadid;
     1.7 -    pThreadStartParms pThreadParms = (pThreadStartParms)SDL_malloc(sizeof(tThreadStartParms));
     1.8 -    if (!pThreadParms) {
     1.9 +	pThreadStartParms pThreadParms = (pThreadStartParms)SDL_malloc(sizeof(tThreadStartParms));
    1.10 +	if (!pThreadParms) {
    1.11  		SDL_OutOfMemory();
    1.12 -        return(-1);
    1.13 -    }
    1.14 +		return(-1);
    1.15 +	}
    1.16  
    1.17 -    // Save the function which we will have to call to clear the RTL of calling app!
    1.18 -    pThreadParms->pfnCurrentEndThread = pfnEndThread;
    1.19 -    // Also save the real parameters we have to pass to thread function
    1.20 -    pThreadParms->args = args;
    1.21 +	// Save the function which we will have to call to clear the RTL of calling app!
    1.22 +	pThreadParms->pfnCurrentEndThread = pfnEndThread;
    1.23 +	// Also save the real parameters we have to pass to thread function
    1.24 +	pThreadParms->args = args;
    1.25  
    1.26  	if (pfnBeginThread) {
    1.27  		thread->handle = (SYS_ThreadHandle) pfnBeginThread(NULL, 0, RunThread,