diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mspdb.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mspdb.cpp b/src/mspdb.cpp index 9f23d15..b402c62 100644 --- a/src/mspdb.cpp +++ b/src/mspdb.cpp @@ -202,6 +202,7 @@ bool tryLoadMsPdbVSWhere(const char* mspdb) {
CloseHandle(processInformation.hProcess);
CloseHandle(processInformation.hThread);
+ CloseHandle(write);
DWORD length;
if (ReadFile(read, buffer, sizeof(buffer) - 1, &length, NULL))
@@ -210,8 +211,9 @@ bool tryLoadMsPdbVSWhere(const char* mspdb) vsPath += buffer;
}
}
+ else
+ CloseHandle(write);
CloseHandle(read);
- CloseHandle(write);
rtrim(vsPath);
if (vsPath.empty())
return false;
|