Changeset View
Changeset View
Standalone View
Standalone View
src/gpgme-w32spawn.c
| Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | if (hnul != INVALID_HANDLE_VALUE) | ||||
| CloseHandle (hnul); | CloseHandle (hnul); | ||||
| for (i = 0; fd_list[i].fd != -1; i++) | for (i = 0; fd_list[i].fd != -1; i++) | ||||
| CloseHandle ((HANDLE) fd_list[i].fd); | CloseHandle ((HANDLE) fd_list[i].fd); | ||||
| if (flags & IOSPAWN_FLAG_ALLOW_SET_FG) | if (flags & IOSPAWN_FLAG_ALLOW_SET_FG) | ||||
| { | { | ||||
| static int initialized; | static int initialized; | ||||
| static BOOL (WINAPI * func)(DWORD); | static FARPROC func; | ||||
| void *handle; | void *handle; | ||||
| if (!initialized) | if (!initialized) | ||||
| { | { | ||||
| /* Available since W2000; thus we dynload it. */ | /* Available since W2000; thus we dynload it. */ | ||||
| initialized = 1; | initialized = 1; | ||||
| handle = LoadLibraryA ("user32.dll"); | handle = LoadLibraryA ("user32.dll"); | ||||
| if (handle) | if (handle) | ||||
| ▲ Show 20 Lines • Show All 255 Lines • Show Last 20 Lines | |||||