dllmgr.cxx (e1f63238) dllmgr.cxx (0848378b)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 563 unchanged lines hidden (view full) ---

572 }
573 }
574 return ERRCODE_NONE;
575}
576
577SbError getProcData(HMODULE handle, rtl::OUString const & name, ProcData * proc)
578{
579 OSL_ASSERT(proc != 0);
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 563 unchanged lines hidden (view full) ---

572 }
573 }
574 return ERRCODE_NONE;
575}
576
577SbError getProcData(HMODULE handle, rtl::OUString const & name, ProcData * proc)
578{
579 OSL_ASSERT(proc != 0);
580 if (name.getLength() != 0 && name[0] == '@') { //TODO: "@" vs. "#"???
580 if ( !name.isEmpty() && name[0] == '@' ) { //TODO: "@" vs. "#"???
581 sal_Int32 n = name.copy(1).toInt32(); //TODO: handle bad input
582 if (n <= 0 || n > 0xFFFF) {
583 return ERRCODE_BASIC_BAD_ARGUMENT; //TODO: more specific errcode?
584 }
585 FARPROC p = GetProcAddress(handle, reinterpret_cast< LPCSTR >(n));
586 if (p != 0) {
587 proc->name = rtl::OString(RTL_CONSTASCII_STRINGPARAM("#")) +
588 rtl::OString::valueOf(n);

--- 154 unchanged lines hidden ---
581 sal_Int32 n = name.copy(1).toInt32(); //TODO: handle bad input
582 if (n <= 0 || n > 0xFFFF) {
583 return ERRCODE_BASIC_BAD_ARGUMENT; //TODO: more specific errcode?
584 }
585 FARPROC p = GetProcAddress(handle, reinterpret_cast< LPCSTR >(n));
586 if (p != 0) {
587 proc->name = rtl::OString(RTL_CONSTASCII_STRINGPARAM("#")) +
588 rtl::OString::valueOf(n);

--- 154 unchanged lines hidden ---