Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb37da1e

Browse files
committed
Remove wrong CloseHandle() call.
In accordance with its own documentation, invoke CloseHandle() only whendirected in the documentation for the function that furnished thehandle. GetModuleHandle() does not so direct. We have been issuingthis call only in the rare event that a CRT DLL contains no "_putenv"symbol, so lack of bug reports is uninformative. Back-patch to 9.2 (allsupported versions).Christian Ullrich, reviewed by Michael Paquier.
1 parenta9d9208 commitb37da1e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

‎src/port/win32env.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ pgwin32_putenv(const char *envval)
9292
rtmodules[i].putenvFunc= (PUTENVPROC)GetProcAddress(rtmodules[i].hmodule,"_putenv");
9393
if (rtmodules[i].putenvFunc==NULL)
9494
{
95-
CloseHandle(rtmodules[i].hmodule);
9695
rtmodules[i].hmodule=INVALID_HANDLE_VALUE;
9796
continue;
9897
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp