소스 검색

Missing calling convention was causing random crashes later

Source commit: b68e9881e2da3424df429161e6d98a774fdbc495
Martin Prikryl 1 년 전
부모
커밋
6bc0a0142f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      source/core/Common.cpp

+ 1 - 1
source/core/Common.cpp

@@ -3157,7 +3157,7 @@ UnicodeString __fastcall WindowsProductName()
     HMODULE WinBrandLib = LoadLibrary(L"winbrand.dll");
     HMODULE WinBrandLib = LoadLibrary(L"winbrand.dll");
     if (WinBrandLib != NULL)
     if (WinBrandLib != NULL)
     {
     {
-      typedef LPWSTR (* TBrandingFormatString)(LPCWSTR);
+      typedef LPWSTR WINAPI (* TBrandingFormatString)(LPCWSTR);
       TBrandingFormatString BrandingFormatString =
       TBrandingFormatString BrandingFormatString =
         reinterpret_cast<TBrandingFormatString>(GetProcAddress(WinBrandLib, "BrandingFormatString"));
         reinterpret_cast<TBrandingFormatString>(GetProcAddress(WinBrandLib, "BrandingFormatString"));
       if (BrandingFormatString != NULL)
       if (BrandingFormatString != NULL)