| 68 | */ |
| 69 | |
| 70 | void path_get_temp_path_( string * buffer ) |
| 71 | { |
| 72 | DWORD pathLength = GetTempPathA( 0, NULL ); |
| 73 | string_reserve( buffer, pathLength ); |
| 74 | pathLength = GetTempPathA( pathLength, buffer->value ); |
| 75 | buffer->value[ pathLength - 1 ] = '\0'; |
| 76 | buffer->size = pathLength - 1; |
| 77 | } |
| 78 | |
| 79 | |
| 80 | /* |
no test coverage detected