mirror of
https://github.com/solemnwarning/ipxwrapper
synced 2024-12-30 16:45:37 +01:00
Initialise common controls.
This commit is contained in:
parent
a40d3da084
commit
9c68c53421
2
Makefile
2
Makefile
@ -58,7 +58,7 @@ ipxwrapper.dll: $(IPXWRAPPER_DEPS)
|
||||
$(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup -shared -o ipxwrapper.dll $(IPXWRAPPER_DEPS) -liphlpapi
|
||||
|
||||
ipxconfig.exe: src/ipxconfig.cpp
|
||||
$(CXX) $(CXXFLAGS) -static-libgcc -static-libstdc++ -D_WIN32_IE=0x0400 -mwindows -o ipxconfig.exe src/ipxconfig.cpp -liphlpapi
|
||||
$(CXX) $(CXXFLAGS) -static-libgcc -static-libstdc++ -D_WIN32_IE=0x0400 -mwindows -o ipxconfig.exe src/ipxconfig.cpp -liphlpapi -lcomctl32
|
||||
|
||||
dpwsockx.dll: src/directplay.o src/log.o src/dpwsockx_stubs.o src/common.o
|
||||
$(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup -shared -o dpwsockx.dll src/directplay.o src/log.o src/common.o src/dpwsockx_stubs.o src/dpwsockx.def -lwsock32
|
||||
|
@ -562,6 +562,14 @@ static void baddr_to_str(char *str, const unsigned char *bin, int nbytes) {
|
||||
}
|
||||
|
||||
static void init_windows() {
|
||||
INITCOMMONCONTROLSEX common_controls;
|
||||
common_controls.dwSize = sizeof(common_controls);
|
||||
common_controls.dwICC = ICC_LISTVIEW_CLASSES;
|
||||
|
||||
if(!InitCommonControlsEx(&common_controls)) {
|
||||
die("Failed to initialise common controls");
|
||||
}
|
||||
|
||||
WNDCLASS wclass;
|
||||
|
||||
memset(&wclass, 0, sizeof(wclass));
|
||||
|
Loading…
x
Reference in New Issue
Block a user