glib/glibbackend/src/getProgPath.cpp
changeset 18 47c74d1534e1
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
equal deleted inserted replaced
0:e4d67989cc36 18:47c74d1534e1
    53 	else
    53 	else
    54 	{
    54 	{
    55 		// If successful, convert from TDesC to narrow chars and 
    55 		// If successful, convert from TDesC to narrow chars and 
    56 		// return.
    56 		// return.
    57 		TFileName fileName = iProcess.FileName();
    57 		TFileName fileName = iProcess.FileName();
       
    58 		iProcess.Kill(0);
    58 		iProcess.Close();
    59 		iProcess.Close();
    59 		
    60 		
    60 		pathLength = fileName.Length();
    61 		pathLength = fileName.Length();
    61 		
    62 		
    62 		progPath = (char *)malloc(pathLength + 1);
    63 		progPath = (char *)malloc(pathLength + 1);