view src/os_w32dll.c @ 19898:648752e0d579 v8.2.0505

patch 8.2.0505: term_getty() not sufficiently tested Commit: https://github.com/vim/vim/commit/01603a9970421272621f7c1ecdc560b522c92e61 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 3 12:56:17 2020 +0200 patch 8.2.0505: term_getty() not sufficiently tested Problem: term_getty() not sufficiently tested. Solution: Add more asserts. (Dominique Pelle, closes https://github.com/vim/vim/issues/5877)
author Bram Moolenaar <Bram@vim.org>
date Fri, 03 Apr 2020 13:00:04 +0200
parents 7ae2396cef62
children
line wrap: on
line source

/* vi:set ts=8 sts=4 sw=4 noet:
 *
 * VIM - Vi IMproved		by Bram Moolenaar
 *
 * Do ":help uganda"  in Vim to read copying and usage conditions.
 * Do ":help credits" in Vim to see a list of people who contributed.
 * See README.txt for an overview of the Vim source code.
 */
/*
 * Windows GUI: main program (DLL) entry point:
 *
 * Ron Aaron <ronaharon@yahoo.com> wrote this and the DLL support code.
 * Adapted by Ken Takata.
 */
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>

void SaveInst(HINSTANCE hInst);

BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
    if (fdwReason == DLL_PROCESS_ATTACH)
	SaveInst(hinstDLL);
    return TRUE;
}