diff --git a/src/gui/Src/Gui/HexEditDialog.cpp b/src/gui/Src/Gui/HexEditDialog.cpp index 961c1576..a883daed 100644 --- a/src/gui/Src/Gui/HexEditDialog.cpp +++ b/src/gui/Src/Gui/HexEditDialog.cpp @@ -758,7 +758,7 @@ void HexEditDialog::printData(DataType type) { INETNTOPW InetNtopW; int numIPs = mData.size() / 16; - HMODULE hWinsock = LoadLibrary(L"ws2_32.dll"); + HMODULE hWinsock = LoadLibraryW(L"ws2_32.dll"); InetNtopW = INETNTOPW(GetProcAddress(hWinsock, "InetNtopW")); if(InetNtopW) { diff --git a/src/gui/Src/Gui/MainWindow.cpp b/src/gui/Src/Gui/MainWindow.cpp index f788b7f9..65d262f5 100644 --- a/src/gui/Src/Gui/MainWindow.cpp +++ b/src/gui/Src/Gui/MainWindow.cpp @@ -2450,7 +2450,7 @@ void MainWindow::clickFavouriteTool() } GuiAddLogMessage(tr("Starting tool %1\n").arg(toolPath).toUtf8().constData()); PROCESS_INFORMATION procinfo; - STARTUPINFO startupinfo; + STARTUPINFOW startupinfo; memset(&procinfo, 0, sizeof(PROCESS_INFORMATION)); memset(&startupinfo, 0, sizeof(startupinfo)); startupinfo.cb = sizeof(startupinfo); diff --git a/src/gui/Src/Utils/MiscUtil.cpp b/src/gui/Src/Utils/MiscUtil.cpp index e43bc3de..7d4117a9 100644 --- a/src/gui/Src/Utils/MiscUtil.cpp +++ b/src/gui/Src/Utils/MiscUtil.cpp @@ -179,7 +179,7 @@ QString getSymbolicNameStr(duint addr) QIcon getFileIcon(QString file) { - SHFILEINFO info; + SHFILEINFOW info; if(SHGetFileInfoW((const wchar_t*)file.utf16(), 0, &info, sizeof(info), SHGFI_ICON) == 0) return QIcon(); //API error QIcon result = QIcon(QtWin::fromHICON(info.hIcon)); diff --git a/src/launcher/x64dbg_launcher.cpp b/src/launcher/x64dbg_launcher.cpp index e1033b97..da14ee6b 100644 --- a/src/launcher/x64dbg_launcher.cpp +++ b/src/launcher/x64dbg_launcher.cpp @@ -309,7 +309,7 @@ static void restartInstall() ShellExecute(nullptr, operation, szApplicationDir, TEXT("::install"), szCurrentDir, SW_SHOWNORMAL); } -static BOOL CALLBACK DlgLauncher(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) +static INT_PTR CALLBACK DlgLauncher(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch(uMsg) {