Skip to content

Instantly share code, notes, and snippets.

View jactry's full-sized avatar

jactry jactry

View GitHub Profile
$ /home/jactry/data/worksapce/hangover/build/wine-host/loader/wine64 winedbg /home/jactry/data/worksapce/hangover/build/qemu/x86_64-windows-user/qemu-x86_64.
exe.so notepad++.exe
WineDbg starting on pid 003e
couldn't load main module (0)
0x000000007bc8ab31: ret
Wine-dbg>c
../../../build/wine-host/tools/winegcc/winegcc -B../../../build/wine-host/tools/winebuild -I../../../build/wine-host/include -I../../../wine/include ../../../dlls/kernel32/virtual.c -c -o virtual_h.o -I../../../dlls/kernel32/../include -I../../../dlls/kernel32/../../qemu/include -DQEMU_CURRENT_DLL=DLL_KERNEL32 -O2 -D_WIN32_WINNT=0x0603 -DGUEST_BIT=64 -DHOST_BIT=64
../../../build/wine-host/tools/winegcc/winegcc -B../../../build/wine-host/tools/winebuild -I../../../build/wine-host/include -I../../../wine/include ../../../dlls/kernel32/volume.c -c -o volume_h.o -I../../../dlls/kernel32/../include -I../../../dlls/kernel32/../../qemu/include -DQEMU_CURRENT_DLL=DLL_KERNEL32 -O2 -D_WIN32_WINNT=0x0603 -DGUEST_BIT=64 -DHOST_BIT=64
../../../build/wine-host/tools/winegcc/winegcc -B../../../build/wine-host/tools/winebuild -I../../../build/wine-host/include -I../../../wine/include ../../../dlls/kernel32/wer.c -c -o wer_h.o -I../../../dlls/kernel32/../include -I../../../dlls/kernel32/../../qemu/include -DQEMU_CURRENT_DLL=D
#include <windows.h>
#include <stdio.h>
int main()
{
LOGFONTW font_attr;
LOGFONTA lf;
HFONT new_font;
int ret;
wget http://media.codeweavers.com.global.prod.fastly.net/pub/crossover/cxmac/demo/crossover-15.2.0.zip
--2016-09-20 13:40:16-- http://media.codeweavers.com.global.prod.fastly.net/pub/crossover/cxmac/demo/crossover-15.2.0.zip
Resolving media.codeweavers.com.global.prod.fastly.net... 151.101.16.249
Connecting to media.codeweavers.com.global.prod.fastly.net|151.101.16.249|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 96537183 (92M) [application/zip]
Saving to: ‘crossover-15.2.0.zip’
typedef struct
{
const char* current_file; /* file of current check */
int current_line; /* line of current check */
int todo_level; /* current todo nesting level */
int todo_do_loop;
char *str_pos; /* position in debug buffer */
char strings[2000]; /* buffer for debug strings */
} tls_data;
#include <windows.h>
#include <stdio.h>
#include "test.h"
static WCHAR *ddeString = NULL;
static HSZ hszTopic = 0, hszReturn = 0;
static DWORD ddeInst = 0;
static HDDEDATA CALLBACK ddeCb(UINT uType, UINT uFmt, HCONV hConv,
HSZ hsz1, HSZ hsz2, HDDEDATA hData,
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
static HDDEDATA CALLBACK dde_cb(UINT uType, UINT uFmt, HCONV hConv,
HSZ hsz1, HSZ hsz2, HDDEDATA hData,
ULONG_PTR dwData1, ULONG_PTR dwData2)
{
return NULL;
}
diff --git a/wdf.py b/wdf.py
index 69f264c..18908fe 100644
--- a/wdf.py
+++ b/wdf.py
@@ -87,7 +87,7 @@ def showQRImage():
def waitForLogin():
global tip, redirect_uri
- url = 'http://wx.qq.com/cgi-bin/mmwebwx-bin/login?tip=%s&uuid=%s&_=%s' % (tip, uuid, int(time.time()))
+ url = 'http://wx2.qq.com/cgi-bin/mmwebwx-bin/login?tip=%s&uuid=%s&_=%s' % (tip, uuid, int(time.time()))
pt1.c:2205:25: warning: '&&' within '||' [-Wlogical-op-parentheses]
if (pri < readystem && s[nnew + 1].value >= stack[j].value
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pt1.c:2205:25: note: place parentheses around the '&&' expression to silence this warning
if (pri < readystem && s[nnew + 1].value >= stack[j].value
^
( )
21 warnings generated.
pt1.c:2761:5: warning: '&&' within '||' [-Wlogical-op-parentheses]
&& ( lastpri==1 || s[j].value-v<20 || (s[x].value-v)*2 >= s[j].value-v ) ) {
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:244:41: error: typedef redefinition with different types ('struct OpaqueWindowPtr *' vs 'struct _Window *')
typedef struct OpaqueWindowPtr* WindowPtr;
^
../../../../programs/Xserver/include/window.h:72:25: note: previous definition is here
typedef struct _Window *WindowPtr;
^
In file included from indirect.c:49:
In file included from ../../../../exports/include/GL/glxint.h:28:
../../../../exports/include/GL/gl.h:112:9: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma export on