diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-27 18:05:29 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-27 18:05:29 +0000 |
commit | 5520786aae3b1ed99b61b97a2b614bd13bf591ba (patch) | |
tree | 21298ddc5ebd0ab2f3e78bca04a49d645e4fd9d1 /loader/qtx/qtxload.c | |
parent | 0dd1adffb47a053223cd12361723fae83c5f3fc8 (diff) | |
download | mpv-5520786aae3b1ed99b61b97a2b614bd13bf591ba.tar.bz2 mpv-5520786aae3b1ed99b61b97a2b614bd13bf591ba.tar.xz |
fixed, rotfl :p
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2503 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/qtx/qtxload.c')
-rw-r--r-- | loader/qtx/qtxload.c | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/loader/qtx/qtxload.c b/loader/qtx/qtxload.c index e47378d157..02e051ef85 100644 --- a/loader/qtx/qtxload.c +++ b/loader/qtx/qtxload.c @@ -27,7 +27,6 @@ main() void *dispatcher; Setup_LDT_Keeper(); - Setup_FS_Segment(); handler = expLoadLibraryA("/usr/lib/win32/qtx/test.qtx"); dispatcher = GetProcAddress(handler, "CDComponentDispatch"); @@ -36,19 +35,20 @@ main() { ComponentResult ret; int (*dispatcher_func)(void *, void *); - struct ComponentParameters params; + struct ComponentParameters *params; void *globals; + dispatcher_func = dispatcher; + globals = malloc(sizeof(long)); (long)*(void **)globals = 0x2001; - params.flags = 0; - params.paramSize = sizeof(params); - params.what = 2; /* probarly register :p */ - params.params[0] = -1; - params.params[1] = -1; - memset(¶ms.params[0], 0x77, sizeof(params.params)*2); -// params.params[1] = 0x1000100f; + params = malloc(sizeof(struct ComponentParameters)); + + params->flags = 0; + params->paramSize = sizeof(params); + params->what = 0x3f; /* probarly register :p */ + params->params[0] = 0x1984; /* 0x1000100f will load QuickTime.qts */ /* 0x10001014 will use SendMessageA */ /* 0x10001019 returns 0 */ @@ -57,21 +57,14 @@ main() /* 0x1000102d is a dialog */ /* 0x10001032 returns 20001 => CDVersion */ /* 0x10001069 returns 8a */ -// params.params[0] = 0x1984; -// params.params[1] = 0x1337; -// params.params[1] = ComponentDummy; printf("params: flags: %d, paramSize: %d, what: %d\n", - params.flags, params.paramSize, params.what); - printf("params[0] = %x, params[1] = %x\n", params.params[0], - params.params[1]); + params->flags, params->paramSize, params->what); + printf("params[0] = %x\n", params->params[0]); ret = dispatcher_func(¶ms, globals); printf("CDComponentDispatch(%p, %p) => %x\n", ¶ms, globals, ret); free(globals); - printf("params: flags: %d, paramSize: %d, what: %d\n", - params.flags, params.paramSize, params.what); - printf("params[0] = %x, params[1] = %x\n", params.params[0], - params.params[1]); + free(params); } Restore_LDT_Keeper(); |