| 57 | */ |
| 58 | |
| 59 | void path_get_temp_path_( string * buffer ) |
| 60 | { |
| 61 | DWORD pathLength = GetTempPathA( 0, NULL ); |
| 62 | string_reserve( buffer, pathLength ); |
| 63 | pathLength = GetTempPathA( pathLength, buffer->value ); |
| 64 | buffer->value[ pathLength - 1 ] = '\0'; |
| 65 | buffer->size = pathLength - 1; |
| 66 | } |
| 67 | |
| 68 | |
| 69 | /* |
no test coverage detected