mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Add support for Visual Leak Detector, since valgrind doesn't support MSVC
This commit is contained in:
@ -65,6 +65,10 @@ target_link_libraries(plUruLauncher ws2_32)
|
||||
target_link_libraries(plUruLauncher rpcrt4)
|
||||
target_link_libraries(plUruLauncher comctl32)
|
||||
|
||||
if(USE_VLD)
|
||||
target_link_libraries(plUruLauncher ${VLD_LIBRARY})
|
||||
endif()
|
||||
|
||||
source_group("Source Files" FILES ${plUruLauncher_SOURCES})
|
||||
source_group("Header Files" FILES ${plUruLauncher_HEADERS})
|
||||
source_group("Resource Files" FILES ${plUruLauncher_RESOURCES})
|
||||
|
@ -431,6 +431,9 @@ BOOL CALLBACK SplashDialogProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l
|
||||
|
||||
//============================================================================
|
||||
static void WindowThreadProc(void *) {
|
||||
#ifdef USE_VLD
|
||||
VLDEnable();
|
||||
#endif
|
||||
|
||||
InitCommonControls();
|
||||
s_event = CreateEvent(
|
||||
@ -476,6 +479,10 @@ static size_t CurlCallback(void *buffer, size_t size, size_t nmemb, void *)
|
||||
//============================================================================
|
||||
static void StatusCallback(void *)
|
||||
{
|
||||
#ifdef USE_VLD
|
||||
VLDEnable();
|
||||
#endif
|
||||
|
||||
const char *serverUrl = GetServerStatusUrl();
|
||||
|
||||
CURL * hCurl = curl_easy_init();
|
||||
|
Reference in New Issue
Block a user