diff options
Diffstat (limited to 'win32/PlatWin.h')
-rw-r--r-- | win32/PlatWin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/PlatWin.h b/win32/PlatWin.h index dd067bb2b..3ee0d6bb7 100644 --- a/win32/PlatWin.h +++ b/win32/PlatWin.h @@ -52,7 +52,7 @@ T DLLFunction(HMODULE hModule, LPCSTR lpProcName) noexcept { } FARPROC function = ::GetProcAddress(hModule, lpProcName); static_assert(sizeof(T) == sizeof(function)); - T fp; + T fp {}; memcpy(&fp, &function, sizeof(T)); return fp; } |