__stdcallの位置が間違っていたのを修正

This commit is contained in:
lltcggie 2015-06-05 01:41:58 +09:00
parent ee1a7a3662
commit 97ea55c08f

View File

@ -81,9 +81,9 @@ Waifu2x::eWaifu2xcuDNNError Waifu2x::can_use_cuDNN()
HMODULE hModule = LoadLibrary(TEXT("cudnn64_65.dll")); HMODULE hModule = LoadLibrary(TEXT("cudnn64_65.dll"));
if (hModule != NULL) if (hModule != NULL)
{ {
typedef cudnnStatus_t(*__stdcall cudnnCreateType)(cudnnHandle_t *); typedef cudnnStatus_t(__stdcall * cudnnCreateType)(cudnnHandle_t *);
typedef cudnnStatus_t(*__stdcall cudnnDestroyType)(cudnnHandle_t); typedef cudnnStatus_t(__stdcall * cudnnDestroyType)(cudnnHandle_t);
typedef uint64_t(*__stdcall cudnnGetVersionType)(); typedef uint64_t(__stdcall * cudnnGetVersionType)();
cudnnCreateType cudnnCreateFunc = (cudnnCreateType)GetProcAddress(hModule, "cudnnCreate"); cudnnCreateType cudnnCreateFunc = (cudnnCreateType)GetProcAddress(hModule, "cudnnCreate");
cudnnDestroyType cudnnDestroyFunc = (cudnnDestroyType)GetProcAddress(hModule, "cudnnDestroy"); cudnnDestroyType cudnnDestroyFunc = (cudnnDestroyType)GetProcAddress(hModule, "cudnnDestroy");