w32: Fix format string regression
Commit 953ffe0f93
introduced FMT_pid which is wrong for w32 and w64 getpid():
those getpid() implementations always return an int value.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
			
			
This commit is contained in:
		
							parent
							
								
									0e0167bacc
								
							
						
					
					
						commit
						59ad3403c2
					
				| 
						 | 
					@ -258,7 +258,7 @@ int qemu_create_pidfile(const char *filename)
 | 
				
			||||||
    if (file == INVALID_HANDLE_VALUE) {
 | 
					    if (file == INVALID_HANDLE_VALUE) {
 | 
				
			||||||
        return -1;
 | 
					        return -1;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    len = snprintf(buffer, sizeof(buffer), FMT_pid "\n", getpid());
 | 
					    len = snprintf(buffer, sizeof(buffer), "%d\n", getpid());
 | 
				
			||||||
    ret = WriteFileEx(file, (LPCVOID)buffer, (DWORD)len,
 | 
					    ret = WriteFileEx(file, (LPCVOID)buffer, (DWORD)len,
 | 
				
			||||||
		      &overlap, NULL);
 | 
							      &overlap, NULL);
 | 
				
			||||||
    if (ret == 0) {
 | 
					    if (ret == 0) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue